Skip site navigation (1) Skip section navigation (2)

pg_dumpall bug in PG 8.0b3 Win32 port

From: "Luiz K(dot) Matsumura" <luiz(at)planit(dot)com(dot)br>
To: pgsql-bugs(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: pg_dumpall bug in PG 8.0b3 Win32 port
Date: 2004-10-05 23:13:47
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-patches

I  tried to use pg_dumpall in Win32 and receive a error message like this:

pg_dump.exe: [archiver (db)] connection to database "test" failed:
FATAL:  user "'postgres'" does not exist

Well, the word "'postgres'" is  the word is between simple quotations
marks and later between double quotations marks.
Then, I assume that the error must be in string that pg_dumpall mounts
to execute pg_dump

I modified pg_dumpall.c lines between  160 and 270  to add a #ifndef
WIN32... #endif clause to pgdumpopts to store
the parameters with double quotations intead simple quotation marks in
case of WIN32 ports
But, I don't have how to test it.
Please, somebody can test and fix the pg_dumpall.c of oficial source ?

Thanks in advance


Attachment: pg_dumpall.c
Description: text/plain (25.6 KB)


pgsql-bugs by date

Next:From: Andrew DunstanDate: 2004-10-05 23:56:57
Subject: Re: pg_dumpall bug in PG 8.0b3 Win32 port
Previous:From: Tom LaneDate: 2004-10-05 22:03:40
Subject: Re: BUG #1279: pg_dump/resore has trouble with implicit sequences of renamed tables

pgsql-patches by date

Next:From: Abhijit Menon-SenDate: 2004-10-05 23:55:02
Subject: Re: libpq and prepared statements progress for 8.0
Previous:From: Andrew DunstanDate: 2004-10-05 22:09:53
Subject: Re: [HACKERS] PGPASSWORD and client tools

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group