Re: alter system command

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Ahmet Demir <dbademir(at)gmail(dot)com>, Atul Kumar <akumar14871(at)gmail(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: alter system command
Date: 2020-12-27 15:52:21
Message-ID: 43fed6b0-a35a-d39e-8bf8-9cdf8fda14c2@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/27/20 12:00 AM, Ahmet Demir wrote:
> Hi,
>
> Please check postgresql.auto.conf file.
> https://www.postgresql.org/docs/13/sql-altersystem.html
> <https://www.postgresql.org/docs/13/sql-altersystem.html>

For a more generic option do:

select * from pg_settings where name = 'archive_command';

https://www.postgresql.org/docs/12/view-pg-settings.html

pg_settings will tell you where the server is getting a particular
setting from.

>
> Ahmet
>
> On Sun, 27 Dec 2020 at 10:53, Atul Kumar <akumar14871(at)gmail(dot)com
> <mailto:akumar14871(at)gmail(dot)com>> wrote:
>
> hi,
>
> I have set archive_command like below:
>
> alter system set archive_command ='pgbackrest --stanza=main
> archive-push %';
>
> then I reloaded the conf file
>
> select pg_reload_conf();
>
>
> now when i checked it using the show command like it gave me correct
> output
>
> postgres=# show archive_command;
>              archive_command
> -----------------------------------------
>  pgbackrest --stanza=main archive-push %
>
>
> but...
>
> while checking the postgresql.conf file it didn't show me above
> output, the parameter acrhive_command is still set with default value
>
> archive_command = '/bin/true/'          # command to use to archive a
> logfile segment
>
> So please help me in giving the reason of it that even after reloading
> the conf file why it didn't set the value in postgresql.conf file ?
>
>
> Regards,
> Atul
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-12-27 22:32:54 Re: Problem with ssl and psql in Postgresql 13
Previous Message Tom Lane 2020-12-27 15:48:11 Re: Include 3 previous tokens in syntax error message