pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Add archive_mode='always' option.
5+ messages / 4 participants
[nested] [flat]
* pgsql: Add archive_mode='always' option.
@ 2015-05-15 15:55 Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-05-15 16:39 ` Re: pgsql: Add archive_mode='always' option. Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
2015-05-18 06:46 ` Re: pgsql: Add archive_mode='always' option. Fujii Masao <masao.fujii@gmail.com>
0 siblings, 2 replies; 5+ messages in thread
From: Heikki Linnakangas @ 2015-05-15 15:55 UTC (permalink / raw)
To: pgsql-committers
Add archive_mode='always' option.
In 'always' mode, the standby independently archives all files it receives
from the primary.
Original patch by Fujii Masao, docs and review by me.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/ffd37740ee6fcd434416ec0c5461f7040e0a11de
Modified Files
--------------
doc/src/sgml/config.sgml | 13 +++++++--
doc/src/sgml/high-availability.sgml | 39 +++++++++++++++++++++++++
src/backend/access/transam/xlog.c | 22 ++++++++++++--
src/backend/access/transam/xlogarchive.c | 5 +++-
src/backend/postmaster/postmaster.c | 37 +++++++++++++++++------
src/backend/replication/walreceiver.c | 10 +++++--
src/backend/utils/misc/guc.c | 21 ++++++-------
src/backend/utils/misc/postgresql.conf.sample | 2 +-
src/include/access/xlog.h | 13 +++++++--
9 files changed, 133 insertions(+), 29 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pgsql: Add archive_mode='always' option.
2015-05-15 15:55 pgsql: Add archive_mode='always' option. Heikki Linnakangas <heikki.linnakangas@iki.fi>
@ 2015-05-15 16:39 ` Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
2015-05-15 17:01 ` Re: pgsql: Add archive_mode='always' option. Heikki Linnakangas <hlinnaka@iki.fi>
1 sibling, 1 reply; 5+ messages in thread
From: Stefan Kaltenbrunner @ 2015-05-15 16:39 UTC (permalink / raw)
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>; +Cc: pgsql-committers
On 05/15/2015 05:55 PM, Heikki Linnakangas wrote:
> Add archive_mode='always' option.
>
> In 'always' mode, the standby independently archives all files it receives
> from the primary.
>
> Original patch by Fujii Masao, docs and review by me.
>
> Branch
> ------
> master
>
> Details
> -------
> http://git.postgresql.org/pg/commitdiff/ffd37740ee6fcd434416ec0c5461f7040e0a11de
>
> Modified Files
> --------------
> doc/src/sgml/config.sgml | 13 +++++++--
> doc/src/sgml/high-availability.sgml | 39 +++++++++++++++++++++++++
> src/backend/access/transam/xlog.c | 22 ++++++++++++--
> src/backend/access/transam/xlogarchive.c | 5 +++-
> src/backend/postmaster/postmaster.c | 37 +++++++++++++++++------
> src/backend/replication/walreceiver.c | 10 +++++--
> src/backend/utils/misc/guc.c | 21 ++++++-------
> src/backend/utils/misc/postgresql.conf.sample | 2 +-
> src/include/access/xlog.h | 13 +++++++--
> 9 files changed, 133 insertions(+), 29 deletions(-)
this broke the docs build:
http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=guaibasaurus&dt=2015-05-15%2016%3A17%3A01
Stefan
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pgsql: Add archive_mode='always' option.
2015-05-15 15:55 pgsql: Add archive_mode='always' option. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-05-15 16:39 ` Re: pgsql: Add archive_mode='always' option. Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
@ 2015-05-15 17:01 ` Heikki Linnakangas <hlinnaka@iki.fi>
0 siblings, 0 replies; 5+ messages in thread
From: Heikki Linnakangas @ 2015-05-15 17:01 UTC (permalink / raw)
To: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>; +Cc: pgsql-committers
On 05/15/2015 07:39 PM, Stefan Kaltenbrunner wrote:
> this broke the docs build:
>
> http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=guaibasaurus&dt=2015-05-15%2016%3A17%3A01
Fixed, thanks.
- Heikki
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pgsql: Add archive_mode='always' option.
2015-05-15 15:55 pgsql: Add archive_mode='always' option. Heikki Linnakangas <heikki.linnakangas@iki.fi>
@ 2015-05-18 06:46 ` Fujii Masao <masao.fujii@gmail.com>
2015-05-18 07:24 ` Re: pgsql: Add archive_mode='always' option. Heikki Linnakangas <hlinnaka@iki.fi>
1 sibling, 1 reply; 5+ messages in thread
From: Fujii Masao @ 2015-05-18 06:46 UTC (permalink / raw)
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>; +Cc: pgsql-committers
On Sat, May 16, 2015 at 12:55 AM, Heikki Linnakangas
<heikki.linnakangas@iki.fi> wrote:
> Add archive_mode='always' option.
>
> In 'always' mode, the standby independently archives all files it receives
> from the primary.
Thanks a lot!!
- /* If we have lost the stats collector, try to start a new one */
- if (PgStatPID == 0 && pmState == PM_RUN)
- PgStatPID = pgstat_start();
Seems the above code which should exist was removed accidentally.
+ be handled similarly, but the archive_command must test if the file
+ being archived exists already, and if the existing file has identical
+ contents. This requires more care in the archive_command, as it must
Isn't it better to enclose archive_command with <varname> tags?
Regards,
--
Fujii Masao
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pgsql: Add archive_mode='always' option.
2015-05-15 15:55 pgsql: Add archive_mode='always' option. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-05-18 06:46 ` Re: pgsql: Add archive_mode='always' option. Fujii Masao <masao.fujii@gmail.com>
@ 2015-05-18 07:24 ` Heikki Linnakangas <hlinnaka@iki.fi>
0 siblings, 0 replies; 5+ messages in thread
From: Heikki Linnakangas @ 2015-05-18 07:24 UTC (permalink / raw)
To: Fujii Masao <masao.fujii@gmail.com>; +Cc: pgsql-committers
On 05/18/2015 09:46 AM, Fujii Masao wrote:
> On Sat, May 16, 2015 at 12:55 AM, Heikki Linnakangas
> <heikki.linnakangas@iki.fi> wrote:
> - /* If we have lost the stats collector, try to start a new one */
> - if (PgStatPID == 0 && pmState == PM_RUN)
> - PgStatPID = pgstat_start();
>
> Seems the above code which should exist was removed accidentally.
Good catch!
> + be handled similarly, but the archive_command must test if the file
> + being archived exists already, and if the existing file has identical
> + contents. This requires more care in the archive_command, as it must
>
> Isn't it better to enclose archive_command with <varname> tags?
Fixed, thanks.
- Heikki
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2015-05-18 07:24 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-15 15:55 pgsql: Add archive_mode='always' option. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2015-05-15 16:39 ` Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
2015-05-15 17:01 ` Heikki Linnakangas <hlinnaka@iki.fi>
2015-05-18 06:46 ` Fujii Masao <masao.fujii@gmail.com>
2015-05-18 07:24 ` Heikki Linnakangas <hlinnaka@iki.fi>
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