pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6756: primary_conninfo is ignored if restore_command is set..
2+ messages / 2 participants
[nested] [flat]

* BUG #6756: primary_conninfo is ignored if restore_command is set..
@ 2012-07-25 01:42 ghazel@gmail.com
  2012-07-25 16:00 ` Re: BUG #6756: primary_conninfo is ignored if restore_command is set.. Fujii Masao <masao.fujii@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: ghazel@gmail.com @ 2012-07-25 01:42 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      6756
Logged by:          Greg Hazel
Email address:      ghazel@gmail.com
PostgreSQL version: 9.1.4
Operating system:   Amazon Linux
Description:        

Trying to get a slave to stream updates from a master, I had both:

restore_command = 'pg_standby /data/pgsql9/archive %f %p %r 2>>standby.log'


and:

primary_conninfo = 'host=10.x.y.z port=5432 user=postgres' 

This configuration never streamed from the master, even after restarts,
waiting hours, etc. After all that, I removed restore_command and restarted,
and the slave started streaming immediately.

This seems to contradict many guides and the documentation I've found.




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #6756: primary_conninfo is ignored if restore_command is set..
  2012-07-25 01:42 BUG #6756: primary_conninfo is ignored if restore_command is set.. ghazel@gmail.com
@ 2012-07-25 16:00 ` Fujii Masao <masao.fujii@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Fujii Masao @ 2012-07-25 16:00 UTC (permalink / raw)
  To: ghazel@gmail.com; +Cc: pgsql-bugs

On Wed, Jul 25, 2012 at 10:42 AM,  <ghazel@gmail.com> wrote:
> The following bug has been logged on the website:
>
> Bug reference:      6756
> Logged by:          Greg Hazel
> Email address:      ghazel@gmail.com
> PostgreSQL version: 9.1.4
> Operating system:   Amazon Linux
> Description:
>
> Trying to get a slave to stream updates from a master, I had both:
>
> restore_command = 'pg_standby /data/pgsql9/archive %f %p %r 2>>standby.log'
>
>
> and:
>
> primary_conninfo = 'host=10.x.y.z port=5432 user=postgres'
>
> This configuration never streamed from the master, even after restarts,
> waiting hours, etc. After all that, I removed restore_command and restarted,
> and the slave started streaming immediately.
>
> This seems to contradict many guides and the documentation I've found.

No. You need to use cp or something instead of pg_standby if you'd like to
use streaming replication. pg_standby is the tool for file-based log shipping
replication.

Regards,

-- 
Fujii Masao



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2012-07-25 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-07-25 01:42 BUG #6756: primary_conninfo is ignored if restore_command is set.. ghazel@gmail.com
2012-07-25 16:00 ` Fujii Masao <masao.fujii@gmail.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