Re: Fwd: Log file

2018-11-11 Thread Peter J. Holzer
On 2018-10-29 14:56:06 -0400, Tom Lane wrote: > Igor Korot writes: > > Or I will have to change the owner/group manuall every time I will > > access the file? > > You can set up the log files as readable by the OS group of the server > (see log_file_mode), and then grant membership in that group

Re: Fwd: Log file

2018-11-06 Thread Ron
On 11/06/2018 12:06 PM, Igor Korot wrote: [snip] Ok. I guess I will have to write such function. Cron and the relevant log_* config variables should solve your problems. -- Angular momentum makes the world go 'round.

Re: Fwd: Log file

2018-11-06 Thread Igor Korot
Hi, guys, For some reason this reply was in my "Spam" folder (gmail service). I guess moving to the new mailer service is not completely safe for "Spam". So replying now - apologies to be late. On Wed, Oct 31, 2018 at 2:00 AM Laurenz Albe wrote: > > Igor Korot wrote: > > Now is there a command

Re: Fwd: Log file

2018-10-31 Thread Adrian Klaver
On 10/30/18 9:20 AM, Igor Korot wrote: Now is there a command to flush the log - delete the content of it? The only thing I know of is: https://www.postgresql.org/docs/10/static/functions-admin.html pg_rotate_logfile() boolean Rotate server's log file All I'm looking for in

Re: Fwd: Log file

2018-10-31 Thread Laurenz Albe
Igor Korot wrote: > Now is there a command to flush the log - delete the content of it? No, managing the logs is outside of PostgreSQL's responsibility. But it shouldn't be a problem to do this outside the database. Of course you could write a funtion in PostgreSQL that uses one of the

Re: Fwd: Log file

2018-10-30 Thread Igor Korot
Now is there a command to flush the log - delete the content of it? All I'm looking for in the log are DDL commands - CREATE/ALTER/DELETE ones. On Wed, Oct 31, 2018 at 12:32 AM Igor Korot wrote: > > Hi, Tom, > > On Mon, Oct 29, 2018 at 5:08 PM Tom Lane wrote: > > > > Igor Korot writes: > > >

Re: Fwd: Log file

2018-10-30 Thread Igor Korot
Hi, Tom, On Mon, Oct 29, 2018 at 5:08 PM Tom Lane wrote: > > Igor Korot writes: > > On Mon, Oct 29, 2018 at 1:56 PM Tom Lane wrote: > >> You can set up the log files as readable by the OS group of the server > >> (see log_file_mode), and then grant membership in that group to whichever > >> OS

Re: Fwd: Log file

2018-10-29 Thread Tom Lane
Igor Korot writes: > On Mon, Oct 29, 2018 at 1:56 PM Tom Lane wrote: >> You can set up the log files as readable by the OS group of the server >> (see log_file_mode), and then grant membership in that group to whichever >> OS accounts you trust. You may also need to move the log directory >>

Re: Fwd: Log file

2018-10-29 Thread Igor Korot
Hi, Tom, On Mon, Oct 29, 2018 at 1:56 PM Tom Lane wrote: > > Igor Korot writes: > > I'm trying to test the functionality of logging on my older Mac with > > PostgreSQL 9.1. > > I see that the logile is created with the owner of postgres and the > > group of wheel. > > Well, more specifically,

Re: Fwd: Log file

2018-10-29 Thread Tom Lane
Igor Korot writes: > I'm trying to test the functionality of logging on my older Mac with > PostgreSQL 9.1. > I see that the logile is created with the owner of postgres and the > group of wheel. Well, more specifically, it's created under the OS user & group that the server is running under. >

Fwd: Log file

2018-10-29 Thread Igor Korot
I initially sent this to the ODBC list.' Thank you for any suggestions. -- Forwarded message - From: Igor Korot Date: Sun, Oct 28, 2018 at 11:03 PM Subject: Log file To: PostgreSQL ODBC list Hi, ALL, I'm trying to test the functionality of logging on my older Mac with