Re: [BUGS] pg_dumpall fails if a database name contains =

2013-02-20 Thread Heikki Linnakangas
On 20.02.2013 16:19, Heikki Linnakangas wrote: ~/pgsql.92stable$ bin/createdb "foo=bar" ~/pgsql.92stable$ bin/pg_dumpall > /dev/null pg_dump: [archiver (db)] connection to database "(null)" failed: invalid connection option "foo" pg_dumpall: pg_dump failed on database "foo=bar", exiting There ar

Re: [BUGS] pg_dumpall -> by hand without --binary-upgrade or BUG #5690: pg_upgrade fails

2010-10-11 Thread Harald Armin Massa
Please try to change you cuttent working directory to a place you have Write-Access before pg_upgrade As in cd \temp or cd %Home% Harald Am 12.10.2010 um 01:09 schrieb Chris English : > In my attempts I changed all pg_hba.conf (8.4 & 9.0) to trusted, turned off > firewall, > followed instruc

Re: [BUGS] pg_dumpall -> by hand without --binary-upgrade or BUG #5690: pg_upgrade fails

2010-10-11 Thread Robert Haas
On Mon, Oct 11, 2010 at 7:09 PM, Chris English wrote: > In my attempts I changed all pg_hba.conf (8.4 & 9.0) to trusted, turned off > firewall, > followed instructions to shut down db(s) and ran cmd.exe as postgres: > > C:\WINDOWS\system32>pg_upgrade.exe -p 5432 -P 5433 -d "c:/program > files/post

Re: [BUGS] pg_dumpall -> by hand without --binary-upgrade or BUG #5690: pg_upgrade fails

2010-10-11 Thread Chris English
> Date: Mon, 11 Oct 2010 16:15:52 -0700> From: pie...@hogranch.com> To: > sgl...@hotmail.com> CC: pgsql-bugs@postgresql.org> Subject: Re: [BUGS] > pg_dumpall -> by hand without --binary-upgrade or BUG #5690: pg_upgrade > fails> > On 10/11/10 4:09 PM, Chris E

Re: [BUGS] pg_dumpall -> by hand without --binary-upgrade or BUG #5690: pg_upgrade fails

2010-10-11 Thread John R Pierce
On 10/11/10 4:09 PM, Chris English wrote: C:\WINDOWS\system32>pg_dumpall.exe --port 5433 username--"postgres" --schema-onl y >"c:/windows/system32/pg_upgrade_dump_all.sql" Access is denied. why are you writing the .sql output to the windows system32 directory?!?!? thats a TERRIBLE place t

Re: [BUGS] pg_dumpall restore fails

2008-12-31 Thread Shaun Crampton
Thanks Tom. I've now successfully restored my database. I manually modified the SQL to include the missing statements. What prompted me to email the list was that I expected the dump tool to handle the incompatibilities between the versions automatically. I thought it was a bug that it didn't.

Re: [BUGS] pg_dumpall restore fails

2008-11-26 Thread Tom Lane
"Shaun Crampton" <[EMAIL PROTECTED]> writes: > I tried to dump the 7.4.13 database using pg_dumpall from 8.3.1 and restore > into 8.3.5 on my local test machine. I get the following errors at restore > time: > ERROR: missing FROM-clause entry for table "icc_countries" > LINE 2: ...de, icc_member

Re: [BUGS] pg_dumpall bug & feature request

2005-11-03 Thread Alvaro Herrera
Ivan wrote: Hi, > Thursday, November 3, 2005, 3:28:41 PM, you wrote: > >> Perhaps you missed my previous message. > >> pg_dumpall has not -f command line option > >> to specify output file - it always send output > >> to standart output. But there is an issue with > >> it in Windows (I described

Re: [BUGS] pg_dumpall bug & feature request

2005-11-03 Thread Ivan
Hello Alvaro, Thursday, November 3, 2005, 3:28:41 PM, you wrote: AH> Ivan wrote: AH> Hi, >> Perhaps you missed my previous message. >> pg_dumpall has not -f command line option >> to specify output file - it always send output >> to standart output. But there is an issue with >> it in Windows (

Re: [BUGS] pg_dumpall bug & feature request

2005-11-03 Thread Alvaro Herrera
Ivan wrote: Hi, > Perhaps you missed my previous message. > pg_dumpall has not -f command line option > to specify output file - it always send output > to standart output. But there is an issue with > it in Windows (I described it earlier) - function's > line endings are changed from 0D 0A to 0D

Re: [BUGS] pg_dumpall (7.3) 'public' schema bug

2004-11-16 Thread Karl O. Pinc
On 2004.11.16 16:25 Tom Lane wrote: "Karl O. Pinc" <[EMAIL PROTECTED]> writes: > I deleted the 'public' schema from my databases > in 7.3, now in 7.4 they are back. IMHO this is not a bug. It is not pg_dump's charter to remove system-created objects... I can live with this, but I find the implicat

Re: [BUGS] pg_dumpall (7.3) two search_path schema bugs

2004-11-16 Thread Tom Lane
"Karl O. Pinc" <[EMAIL PROTECTED]> writes: > It appears as though pg_dumpall is setting the search_path > runtime variable in the databases before it creates the > schemas. Further, it appears as though the ALTER > DATABASE command used to set the search path does > not have the quotes correct. T

Re: [BUGS] pg_dumpall (7.3) 'public' schema bug

2004-11-16 Thread Tom Lane
"Karl O. Pinc" <[EMAIL PROTECTED]> writes: > I deleted the 'public' schema from my databases > in 7.3, now in 7.4 they are back. IMHO this is not a bug. It is not pg_dump's charter to remove system-created objects... regards, tom lane ---(end of b

Re: [BUGS] pg_dumpall does not save CREATE permission on databases

2003-11-20 Thread Neil Conway
Tom Lane <[EMAIL PROTECTED]> writes: > Neil Conway <[EMAIL PROTECTED]> writes: >> If not, we needn't worry about it, IMHO. But if there are, I can >> take a look at producing a low-risk version of this changed for >> application to REL7_3_STABLE. > > Go for it. Just FYI, I'm really busy with vario

Re: [BUGS] pg_dumpall does not save CREATE permission on databases

2003-11-10 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > Are there plans for a 7.3.5 release? Yes, I think there will be a 7.3.5 fairly soon. > If not, we needn't worry about > it, IMHO. But if there are, I can take a look at producing a low-risk > version of this changed for application to REL7_3_STABLE. Go f

Re: [BUGS] pg_dumpall does not save CREATE permission on databases

2003-11-10 Thread Neil Conway
Tom Lane <[EMAIL PROTECTED]> writes: > Well, it was done as part of a significant set of changes to > pg_dumpall: Are there plans for a 7.3.5 release? If not, we needn't worry about it, IMHO. But if there are, I can take a look at producing a low-risk version of this changed for application to REL

Re: [BUGS] pg_dumpall does not save CREATE permission on databases

2003-11-10 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > Is this a candidate for being back-patched to 7_3_STABLE? IMHO it > would be useful and low-risk. Well, it was done as part of a significant set of changes to pg_dumpall: 2003-05-30 18:55 tgl * src/bin/pg_dump/: dumputils.c, dumputils.h, pg_dump

Re: [BUGS] pg_dumpall does not save CREATE permission on databases

2003-11-10 Thread Neil Conway
Tom Lane <[EMAIL PROTECTED]> writes: > Paul Tillotson <[EMAIL PROTECTED]> writes: >> pg_dumpall does not save all access control permissions on a database. >> (This is true for at least the CREATE permission.) > > This is fixed as of 7.4. Is this a candidate for being back-patched to 7_3_STABLE? I

Re: [BUGS] pg_dumpall does not save CREATE permission on databases

2003-11-08 Thread Tom Lane
Paul Tillotson <[EMAIL PROTECTED]> writes: > pg_dumpall does not save all access control permissions on a database. > (This is true for at least the CREATE permission.) This is fixed as of 7.4. regards, tom lane ---(end of broadcast)---

Re: [BUGS] pg_dumpall does not save CREATE permission on databases

2003-11-08 Thread Bruce Momjian
This is fixed in 7.4.X and in fact 7.4 pg_dumpall will work on a 7.3.X database. --- Paul Tillotson wrote: > > POSTGRESQL

Re: [BUGS] pg_dumpall not working in batch

2003-06-13 Thread Serge Obeuf
ozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 >X-Accept-Language: en-us, en >MIME-Version: 1.0 >To: Serge Obeuf <[EMAIL PROTECTED]> >Cc: [EMAIL PROTECTED] >Subject: Re: [BUGS] pg_dumpall not working in batch >Content-Transfer-Encoding: 7bit >

Re: [BUGS] pg_dumpall not working in batch

2003-06-12 Thread Dmitry Tkach
You must have some environment setting (like LD_LIBRARY_PATH?) in your .login or .bashrc (or whatever shell you are using), that tells psql where to find that library. When you run it via cron, that environment isn't being set and causes it to fail. I hope, it helps... Dima Serge Obeuf wrot

Re: [BUGS] Pg_dumpall in batch

2003-06-12 Thread Achilleus Mantzios
On Thu, 12 Jun 2003, Serge Obeuf wrote: > Hi all. > > I recently posted here some questions about pg_dumpall (7.2) on solaris8. > Investigating, I reduce my problem cases. > > When I plan by crontab 'pg_dumpall > dball.sql', I receive this error > connected to template1... > ld.so.1: /usr/local/

Re: [BUGS] pg_dumpall segfault

2003-03-17 Thread Nick Eskelinen
Ahh... as a matter of fact I do. Adding someone to this empty group corrects the problem. Thanks! Nick On Fri, Mar 14, 2003 at 05:32:42PM -0500, Tom Lane wrote: > Nick Eskelinen <[EMAIL PROTECTED]> writes: > > pg_dumpall segfaults when trying to dump group information. > > Hmm, you have any empt

Re: [BUGS] pg_dumpall segfault

2003-03-14 Thread Tom Lane
Nick Eskelinen <[EMAIL PROTECTED]> writes: > Ahh... as a matter of fact I do. Adding someone to this empty group > corrects the problem. Thought so. I've committed a fix if you need it: *** src/bin/pg_dump/pg_dumpall.c.orig Thu Mar 6 16:45:52 2003 --- src/bin/pg_dump/pg_dumpall.cFri M

Re: [BUGS] pg_dumpall segfault

2003-03-14 Thread Tom Lane
Nick Eskelinen <[EMAIL PROTECTED]> writes: > pg_dumpall segfaults when trying to dump group information. Hmm, you have any empty (member-less) groups? Looks like this loop needs a test at the top not the bottom ... regards, tom lane ---(end of bro

Re: [BUGS] pg_dumpall ignores --globals-only

2003-03-07 Thread Dan Langille
On Thu, 6 Mar 2003, Tom Lane wrote: > "Dan Langille" <[EMAIL PROTECTED]> writes: > > $ pg_dumpall --globals_only > > pg_dumpall: unrecognized option `--globals_only' > > There seems to be a bit of a disconnect between the code, the usage > message, and the long_options table in pg_dumpall :-(. I'

Re: [BUGS] pg_dumpall ignores --globals-only

2003-03-06 Thread Oliver Elphick
On Thu, 2003-03-06 at 19:25, Dan Langille wrote: > Hi folks... > > Can anyone else confirm this on 7.3.2? > > $ pg_dumpall --globals_only In fact it should be "globals-only" (hyphen, not underscore), but even when spelt correctly it doesn't work. > pg_dumpall: unrecognized option `--globals_onl

Re: [BUGS] pg_dumpall ignores --globals-only

2003-03-06 Thread Tom Lane
"Dan Langille" <[EMAIL PROTECTED]> writes: > $ pg_dumpall --globals_only > pg_dumpall: unrecognized option `--globals_only' Looks like it's just a one-liner oversight. I'm not sure whether -g will work on your platform; if not, use the attached patch. regards, tom lane *

Re: [BUGS] pg_dumpall ignores --globals-only

2003-03-06 Thread Tom Lane
"Dan Langille" <[EMAIL PROTECTED]> writes: > $ pg_dumpall --globals_only > pg_dumpall: unrecognized option `--globals_only' There seems to be a bit of a disconnect between the code, the usage message, and the long_options table in pg_dumpall :-(. I'll see about cleaning it up, but in the meantime

Re: [BUGS] pg_dumpall forces plain text format

2002-07-12 Thread Bruce Momjian
Andrew Kohlsmith wrote: > > > Is there a particular reason why plain text is forced? > > Because pg_dumpall is producing a script file. > > This is obviously not optimal, but it's not very clear how to do better. > > Agreed. :-) > > I notice that pg_dumpall just uses a query to grab a list of d

Re: [BUGS] pg_dumpall forces plain text format

2002-07-12 Thread Andrew Kohlsmith
> > Or is that on the TODO for whenever foreign keys can be across databases? > I very seriously doubt that PG will *ever* support foreign keys across > databases. No problem. I'm not that advanced of a user or admin to want it, I was just trying to peer into the crystal ball and try to anticip

Re: [BUGS] pg_dumpall forces plain text format

2002-07-12 Thread Andrew Kohlsmith
> > Is there a particular reason why plain text is forced? > Because pg_dumpall is producing a script file. > This is obviously not optimal, but it's not very clear how to do better. Agreed. :-) I notice that pg_dumpall just uses a query to grab a list of databases and some information about t

Re: [BUGS] pg_dumpall forces plain text format

2002-07-11 Thread Joe Conway
grant wrote: > You could fake some of this (select only) by using the dblink stuff in > contrib. You could link back to yourself and make it work. Maybe if > you REALLY need it, you could modify dblink to allow updates as well as > selects. If you really need it that bad, you have the sourc

Re: [BUGS] pg_dumpall forces plain text format

2002-07-11 Thread grant
You could fake some of this (select only) by using the dblink stuff in contrib. You could link back to yourself and make it work. Maybe if you REALLY need it, you could modify dblink to allow updates as well as selects. If you really need it that bad, you have the source, write it. --

Re: [BUGS] pg_dumpall forces plain text format

2002-07-11 Thread Tom Lane
Andrew Kohlsmith <[EMAIL PROTECTED]> writes: > Is there a way to start a transaction at the start of > the dump and hold it throughout successive connections, finally releasing it > at the end? No, and since one backend can only talk to one database, I don't foresee that changing. > Or is that

Re: [BUGS] pg_dumpall forces plain text format

2002-07-11 Thread Tom Lane
Andrew Kohlsmith <[EMAIL PROTECTED]> writes: > Is there a particular reason why plain text is forced? Because pg_dumpall is producing a script file. This is obviously not optimal, but it's not very clear how to do better. regards, tom lane ---(en

Re: [BUGS] pg_dumpall should permit quiet operation

2002-06-20 Thread Bruce Momjian
Without showing the database being dumped, the entire output of pg_dumpall seems pretty useless so you may as well pipe the whole output to /dev/null. I don't think a quiet feature for pg_dumpall has enough use for ordinary users. Sorry. -

Re: [BUGS] pg_dumpall in post

2001-05-23 Thread Tom Lane
"karthikeyan V" <[EMAIL PROTECTED]> writes: > "failed sanity check, table user_details was not found > pg_dump failed on users, exiting" Probably, you deleted the pg_shadow entry for the user that owned this table. 7.1's pg_dump is somewhat smarter about this sort of situation, but in older vers

Re: [BUGS] pg_dumpall -h looks up database names locally.

2000-12-21 Thread Peter Eisentraut
> pg_dumpall -h looks up database names locally. True. You will find this fixed in 7.1. -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/

Re: [BUGS] pg_dumpall POSTGRES_USER and ENCODING

2000-03-18 Thread Bruce Momjian
Applied. I should have realized I was using the username to look up the username. -- Start of PGP signed section. > it seems in the beta2 release DBUSERID in pg_dumpall is the _name_ of the > user, so it doesn't need to be translated from the number to the name. > > also ``create database ...''

Re: [BUGS] pg_dumpall

2000-03-10 Thread Nathaniel Smith
lt;[EMAIL PROTECTED]> > Gesendet: Donnerstag, 9. März 2000 20:17 > Betreff: Re: [BUGS] pg_dumpall > > > Kardos, Dr. Andreas writes: > > > I have tested the pg_dumpall (with PATHNAME stuff) which Peter E. has > mailed > > to this list. > > > > It wo

Re: [BUGS] pg_dumpall

2000-03-10 Thread Kardos, Dr. Andreas
Eisentraut <[EMAIL PROTECTED]> An: Kardos, Dr. Andreas <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Gesendet: Donnerstag, 9. März 2000 20:17 Betreff: Re: [BUGS] pg_dumpall Kardos, Dr. Andreas writes: > I have tested the pg_dumpall (with PATHNAME stuff) which Peter E. has

Re: [BUGS] pg_dumpall

2000-03-09 Thread Peter Eisentraut
Kardos, Dr. Andreas writes: > I have tested the pg_dumpall (with PATHNAME stuff) which Peter E. has mailed > to this list. > > It works fine on QNX4 but definitly not on Digital Unix. > > The version in CVS works in general, but not on QNX4. On QNX4 I have to > remove the escape backslashes. O

Re: [BUGS] pg_dumpall

2000-03-09 Thread Bruce Momjian
[Charset ISO-8859-1 unsupported, filtering to ASCII...] > Bruce Momjian writes: > > > > > 3. QNX4 only: The double quotes in > > > > > > > > POSTGRES_USER="`echo \" \ > > > > > > > > etc. must not be escaped with a backslash. > > > > > > Technically, it should just work without them (the back

Re: [BUGS] pg_dumpall

2000-03-09 Thread Kardos, Dr. Andreas
Nachricht- Von: Peter Eisentraut <[EMAIL PROTECTED]> An: Kardos, Dr. Andreas <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Gesendet: Donnerstag, 9. März 2000 01:38 Betreff: Re: [BUGS] pg_dumpall Kardos, Dr. Andreas writes: > 2. FOO="`echo "$BAR"`" > &