Re: Odd config issue, cannot set log_min_duration_statement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: S Bob <sbob(at)quadratum-braccas(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Odd config issue, cannot set log_min_duration_statement
Date: 2021-01-15 02:31:40
Message-ID: 1623237.1610677900@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

S Bob <sbob(at)quadratum-braccas(dot)com> writes:
> I set:
> log_min_duration_statement = 0
> and restarted the cluster but if I connect via psql and check it's still
> disabled

If you just did "SET" then it'd only affect the current session.

> I tried an alter system, now if I cat the auto.conf file i see:
> $ cat postgresql.auto.conf
> # Do not edit this file manually!
> # It will be overwritten by the ALTER SYSTEM command.
> log_min_duration_statement = '0'

Hmm, that should have worked. What do you see in

select * from pg_settings where name = 'log_min_duration_statement';

(the "source..." columns are important here)

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message franklin ferreira de lima 2021-01-15 02:36:59 Re: Odd config issue, cannot set log_min_duration_statement
Previous Message S Bob 2021-01-15 02:12:54 Odd config issue, cannot set log_min_duration_statement