Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Greg Smith
On Tue, 11 Aug 2009, Dimitri Fontaine wrote: We should somehow provide a default archive and restore command integrated into the main product, so that it's as easy as turning it 'on' in the configuration for users to have something trustworthy: PostgreSQL will keep past logs into a

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Kevin Grittner
Robert Haas robertmh...@gmail.com wrote: *scratches head* I don't really know how you COULD pick a safe default location. Presumably any location that's in the default postgresql.conf file would be under $PGDATA, which kind of defeats the purpose of the whole thing. In other words,

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Josh Berkus
All, The other reason is what I think Greg Smith was mentioning -- simplifying the process of grabbing a usable PITR backup for novice users. That seems like it has merit. While we're at this, can we add xlog_location as a file-location GUC? It seems inconsistent that we're still requiring

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Tom Lane
Josh Berkus j...@agliodbs.com writes: While we're at this, can we add xlog_location as a file-location GUC? That was proposed and rejected quite a long time ago. We don't *want* people to be able to just change a GUC and have their xlog go somewhere else, because of the foot-gun potential. You

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Josh Berkus
Tom, That was proposed and rejected quite a long time ago. We don't *want* people to be able to just change a GUC and have their xlog go somewhere else, because of the foot-gun potential. You need to be sure that the existing WAL files get moved over when you do something like that, and

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Tom Lane
Josh Berkus j...@agliodbs.com writes: That was proposed and rejected quite a long time ago. We don't *want* people to be able to just change a GUC and have their xlog go somewhere else, because of the foot-gun potential. You need to be sure that the existing WAL files get moved over when you

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Josh Berkus
Now admittedly it's not hard to screw yourself with a careless manual move of xlog, either. But at least the database didn't hand you a knob that invites clueless frobbing. So really rather than a GUC we should have a utility for moving the xlog. -- Josh Berkus PostgreSQL Experts Inc.

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Tom Lane
Josh Berkus j...@agliodbs.com writes: Now admittedly it's not hard to screw yourself with a careless manual move of xlog, either. But at least the database didn't hand you a knob that invites clueless frobbing. So really rather than a GUC we should have a utility for moving the xlog. Yeah,

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Josh Berkus
Yeah, that would work. Although it would probably take as much verbiage to document the utility as it does to document how to do it manually. Yes, but it would *feel* less hackish to sysadmins and DBAs, and make them more confident about moving the xlogs. Getting it to work on windows will

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Andrew Dunstan
Josh Berkus wrote: Yeah, that would work. Although it would probably take as much verbiage to document the utility as it does to document how to do it manually. Yes, but it would *feel* less hackish to sysadmins and DBAs, and make them more confident about moving the xlogs. Getting it

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-13 Thread Jaime Casanova
On Thu, Aug 13, 2009 at 1:49 PM, Josh Berkusj...@agliodbs.com wrote: Yeah, that would work.  Although it would probably take as much verbiage to document the utility as it does to document how to do it manually. Yes, but it would *feel* less hackish to sysadmins and DBAs, and make them more

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-11 Thread Magnus Hagander
On Tuesday, August 11, 2009, Heikki Linnakangas heikki.linnakan...@enterprisedb.com wrote: 2009/8/11 Robert Haas robertmh...@gmail.com We should probably have a separate discussion about what the least committable unit would be for this patch.  I wonder if it might be sufficient to provide

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-11 Thread Fujii Masao
Hi, On Tue, Aug 11, 2009 at 3:33 PM, Magnus Hagandermag...@hagander.net wrote: We should probably have a separate discussion about what the least committable unit would be for this patch.  I wonder if it might be sufficient to provide a facility for streaming WAL, plus a standalone tool for

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-11 Thread Fujii Masao
Hi, On Tue, Aug 11, 2009 at 1:25 PM, Robert Haasrobertmh...@gmail.com wrote: But just to kick off the discussion, here is Heikki's review of Synch Rep on 7/15: http://archives.postgresql.org/pgsql-hackers/2009-07/msg00913.php I think the key phrases in this review are I believe we have

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-11 Thread Dimitri Fontaine
Hi, Le 11 août 09 à 07:50, Heikki Linnakangas a écrit : 2009/8/11 Robert Haas robertmh...@gmail.com We should probably have a separate discussion about what the least committable unit would be for this patch. I wonder if it might be sufficient to provide a facility for streaming WAL, plus a

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-11 Thread Robert Haas
On Tue, Aug 11, 2009 at 5:20 PM, Dimitri Fontainedfonta...@hi-media.com wrote: We should somehow provide a default archive and restore command integrated into the main product, so that it's as easy as turning it 'on' in the configuration for users to have something trustworthy: PostgreSQL will

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-11 Thread Dimitri Fontaine
Le 11 août 09 à 23:30, Robert Haas a écrit : On Tue, Aug 11, 2009 at 5:20 PM, Dimitri Fontainedfonta...@hi-media.com wrote: We should somehow provide a default archive and restore command integrated into the main product, so that it's as easy as turning it 'on' in the configuration for

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-11 Thread Joshua D. Drake
On Tue, 2009-08-11 at 17:30 -0400, Robert Haas wrote: On Tue, Aug 11, 2009 at 5:20 PM, Dimitri Fontainedfonta...@hi-media.com wrote: We should somehow provide a default archive and restore command integrated into the main product, so that it's as easy as turning it 'on' in the

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-11 Thread Robert Haas
On Tue, Aug 11, 2009 at 5:40 PM, Dimitri Fontainedfonta...@hi-media.com wrote: Le 11 août 09 à 23:30, Robert Haas a écrit : On Tue, Aug 11, 2009 at 5:20 PM, Dimitri Fontainedfonta...@hi-media.com wrote: We should somehow provide a default archive and restore command integrated into the

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-11 Thread Fujii Masao
Hi, On Wed, Aug 12, 2009 at 6:50 AM, Robert Haasrobertmh...@gmail.com wrote: I don't really know how you COULD pick a safe default location. Presumably any location that's in the default postgresql.conf file would be under $PGDATA, which kind of defeats the purpose of the whole thing.  In

[HACKERS] Hot standby and synchronous replication status

2009-08-10 Thread Bruce Momjian
What is the status of hot standby and synchronous replication? Is there a design specification? Who are the lead developers? Who is assisting? What open item do we have for each feature? Where is the most recent patch? Can we incrementally start applying patches for these features? Would

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-10 Thread Robert Haas
On Mon, Aug 10, 2009 at 9:51 PM, Bruce Momjianbr...@momjian.us wrote: What is the status of hot standby and synchronous replication?  Is there a design specification?  Who are the lead developers?  Who is assisting? What open item do we have for each feature?  Where is the most recent patch?  

Re: [HACKERS] Hot standby and synchronous replication status

2009-08-10 Thread Heikki Linnakangas
2009/8/11 Robert Haas robertmh...@gmail.com We should probably have a separate discussion about what the least committable unit would be for this patch. I wonder if it might be sufficient to provide a facility for streaming WAL, plus a standalone tool for receving it and storing it to a