pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedalter system command
3+ messages / 3 participants
[nested] [flat]
* alter system command
@ 2020-12-27 07:53 Atul Kumar <akumar14871@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Atul Kumar @ 2020-12-27 07:53 UTC (permalink / raw)
To: pgsql-general
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: alter system command
@ 2020-12-27 08:00 Ahmet Demir <dbademir@gmail.com>
parent: Atul Kumar <akumar14871@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Ahmet Demir @ 2020-12-27 08:00 UTC (permalink / raw)
To: Atul Kumar <akumar14871@gmail.com>; +Cc: pgsql-general
Hi,
Please check postgresql.auto.conf file.
https://www.postgresql.org/docs/13/sql-altersystem.html
Ahmet
On Sun, 27 Dec 2020 at 10:53, Atul Kumar <akumar14871@gmail.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
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: alter system command
@ 2020-12-27 15:52 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Ahmet Demir <dbademir@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Klaver @ 2020-12-27 15:52 UTC (permalink / raw)
To: Ahmet Demir <dbademir@gmail.com>; Atul Kumar <akumar14871@gmail.com>; +Cc: 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@gmail.com
> <mailto:akumar14871@gmail.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.klaver@aklaver.com
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-12-27 15:52 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-27 07:53 alter system command Atul Kumar <akumar14871@gmail.com>
2020-12-27 08:00 ` Ahmet Demir <dbademir@gmail.com>
2020-12-27 15:52 ` Adrian Klaver <adrian.klaver@aklaver.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox