Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Dave Page
--- Original Message --- From: Joshua D. Drake [EMAIL PROTECTED] To: Dave Page [EMAIL PROTECTED] Sent: 15/03/07, 23:51:18 Subject: Re: [GENERAL] pg_dumpall and version confusion If you want that, create a wrapper program that calls to different statically compiled versions

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Jorge Godoy
Dave Page [EMAIL PROTECTED] writes: --- Original Message --- From: Joshua D. Drake [EMAIL PROTECTED] To: Dave Page [EMAIL PROTECTED] Sent: 15/03/07, 23:51:18 Subject: Re: [GENERAL] pg_dumpall and version confusion If you want that, create a wrapper program that calls to different

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Dave Page
Jorge Godoy wrote: Dave Page [EMAIL PROTECTED] writes: --- Original Message --- From: Joshua D. Drake [EMAIL PROTECTED] To: Dave Page [EMAIL PROTECTED] Sent: 15/03/07, 23:51:18 Subject: Re: [GENERAL] pg_dumpall and version confusion If you want that, create a wrapper program

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Joshua D. Drake
Dave Page wrote: --- Original Message --- From: Joshua D. Drake [EMAIL PROTECTED] To: Dave Page [EMAIL PROTECTED] Sent: 15/03/07, 23:51:18 Subject: Re: [GENERAL] pg_dumpall and version confusion If you want that, create a wrapper program that calls to different statically

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Tony Caduto
Joshua D. Drake wrote: other deficiencies let's not add to complexity by having an --output-version. If you want that, create a wrapper program that calls to different statically compiled versions of pg_dump. Joshua D. Drake I am afraid that I have to agree with Tom here. Pg_dump has

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Tom Lane
Tony Caduto [EMAIL PROTECTED] writes: I don't think the whole --output-version thing would be a good idea either, but it would be a simple matter to add some logic for the GRANT ON SEQUENCE, which seems to be the only thing that is really causing problems at least between 8.1 and 8.2. You

[GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Alan J Batsford
I inherited an existing system with no documents on how it was originally configuerd, so I'll provide as much as I can. OS is CentOS 4.3 Linux Distribution. When I search my system for anything postgres I find a boatload of 8.0.4 source, and a boatload of 7.4.8 documentation. postgres --version

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Tom Lane
Alan J Batsford [EMAIL PROTECTED] writes: When I search my system for anything postgres I find a boatload of 8.0.4 source, and a boatload of 7.4.8 documentation. rpm -qa | grep postgres would probably prove enlightening. It sounds like you have postgresql-server at 8.1.4 and the other

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Tony Caduto
Tom Lane wrote: We try to make pg_dump cope with prior server releases, but since we lack a time machine we can't go back and teach old versions about subsequent server changes... Tom, How come version 8.2 of pg_dump uses GRANT ON SEQUENCE when dumping a 8.1 or older database? Was it just a

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Alvaro Herrera
Tony Caduto wrote: Tom Lane wrote: We try to make pg_dump cope with prior server releases, but since we lack a time machine we can't go back and teach old versions about subsequent server changes... Tom, How come version 8.2 of pg_dump uses GRANT ON SEQUENCE when dumping a 8.1 or older

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Tony Caduto
Alvaro Herrera wrote: What's wrong with that? 8.2 will understand the GRANT ON SEQUENCE without a problem. Yes, but 8.1 and earlier wont! If you dump a 8.1 database (with 8.2 pg_dump) and then use that dump to restore to another 8.1 server, any permissions on sequences will fail to

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Dave Page
Tony Caduto wrote: Alvaro Herrera wrote: What's wrong with that? 8.2 will understand the GRANT ON SEQUENCE without a problem. Yes, but 8.1 and earlier wont! If you dump a 8.1 database (with 8.2 pg_dump) and then use that dump to restore to another 8.1 server, any permissions on

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Tony Caduto
Dave Page wrote: This is a problem I've been thinking about on and off recently - and I am starting to come to the conclusion that shipping each version of the utilities is the only way things are likely to work unless someone puts some really significant effort into adding backwards

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Scott Marlowe
On Thu, 2007-03-15 at 11:53, Tony Caduto wrote: Dave Page wrote: This is a problem I've been thinking about on and off recently - and I am starting to come to the conclusion that shipping each version of the utilities is the only way things are likely to work unless someone puts some

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Tom Lane
Tony Caduto [EMAIL PROTECTED] writes: Alvaro Herrera wrote: What's wrong with that? 8.2 will understand the GRANT ON SEQUENCE without a problem. Yes, but 8.1 and earlier wont! You're missing the point entirely. The versioning contract for pg_dump is that version M.N can dump from servers

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Dave Page
Tom Lane wrote: I have *no* interest in trying to get it to support an --output-version switch... There speaks a man who has the luxury of not having to worry about multi-version admin tools :-( /D ---(end of broadcast)--- TIP 4: Have you

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Alvaro Herrera
Dave Page wrote: Tom Lane wrote: I have *no* interest in trying to get it to support an --output-version switch... There speaks a man who has the luxury of not having to worry about multi-version admin tools :-( Is it more difficult for you to ship a pg_dump-8.0, pg_dump-8.1, etc along

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Dave Page
Alvaro Herrera wrote: Dave Page wrote: Tom Lane wrote: I have *no* interest in trying to get it to support an --output-version switch... There speaks a man who has the luxury of not having to worry about multi-version admin tools :-( Is it more difficult for you to ship a pg_dump-8.0,

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Martijn van Oosterhout
On Thu, Mar 15, 2007 at 09:19:31PM +, Dave Page wrote: Even if we went through the insane pain (for me at least) of maintaining multiple branches of the Windows build of PostgreSQL, *and* custom builds of the utilities built against a single libpq, we still couldn't ship a single set

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Paul Lambert
Porting it to Windows could be tricky though, given its use of symlinks and wrapper scripts. FWIW, as of Vista and Server Longhorn, Windows now supports Symlinks. I don't know about wrapper scripts though. -- Paul Lambert Database Administrator AutoLedgers ---(end

Re: [GENERAL] pg_dumpall and version confusion

2007-03-15 Thread Joshua D. Drake
Dave Page wrote: Tom Lane wrote: I have *no* interest in trying to get it to support an --output-version switch... There speaks a man who has the luxury of not having to worry about multi-version admin tools :-( I am afraid that I have to agree with Tom here. Pg_dump has plenty of other