Bug in pg_dump.exe/pg_restore (Version 8.4 beta 2)

From: "Andreas Nolte" <ANolte(at)manz-automation(dot)com>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: Bug in pg_dump.exe/pg_restore (Version 8.4 beta 2)
Date: 2009-06-09 10:42:08
Message-ID: EFABCA993BFB004C96438AC845DE2F81014DDDA8@MAIL2.manz.lc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello,

I'm testing now for almost a day, and I'm pretty sure now that this is a bug.

I tried to collect as much information for you as possible.

following behaviour:

I have a UTF8 encoded database (with name MANZPartCarrier), running on WindowsXP. Dump/Restore work fine with PostgreSQL 8.3.6, but not with 8.4 beta 2.

// 1. Create the database, via silent installation

msiexec /i Installer\postgresql-8.4-beta2-int.msi /qn INTERNALLAUNCH=1 DOSERVICE=0 NOSHORTCUTS=1 DOINITDB=0 ADDLOCAL="server,psql,pgadmin,includefiles,libfiles,nls" PERMITREMOTE=1 BASEDIR=%pgPath% /Lime Log\PGServerInstallationLog.txt

// 2. Init DB with UTF8 settings

%pgPath%\bin\initdb.exe --username="sa" --pwfile="SAPassword.txt" --pgdata=%pgPath%\data --encoding=UTF8 --locale="English_United States" --xlogdir=%walPath%

// 3. Backup the DB (also tried with explicid -E UTF8 or -E Windows_1252)

%backupPath%\..\bin\pg_dump.exe -h localhost -p 5432 -U sa -F c -b -v -f %backupPath%\%ManzPartCarrierFileName% "MANZPartCarrier"

// Some intermediate steps (from my point of view not important)

// Stopping database, to disconnect connections and background tasks

pg_ctl.exe stop -w -D "..\data" -m fast

// Restart database

Net.exe start pgMANZDB

// Drop current database

// dropdb -U sa MANZPartCarrier

// 4. Restore the db

..\bin\pg_restore.exe -h localhost -p 5432 -U sa -C -d postgres -v "%backupPath%\MANZPartCarrier_Original.backup"

--> Result:

A warning appear on the console: WARNING: errors ignored on restore: 152

The db log shows:

... CEST ERROR: syntax error at or near "@" at character 33

... CEST STATEMENT: ALTER FUNCTION public.sp_pp_set(@ppnr integer, @JobID character varying) OWNER TO sa;

It fails to restore the parameters of a lot of functions... only 2 functions (without any parameter) are restored fine.

Beste Gruesse / best regards

Andreas Nolte

Manz Automation AG
Andreas Nolte
Entwicklung / Applikation Software HMI & SCADA

R & D / Application Software HMI & SCADA

Steigaeckerstrasse 5
D-72768 Reutlingen
T +49.(0)7121.9000-844
F +49.(0)7121.9000-279

E anolte(at)manz-automation(dot)com
www.manz-automation.com <http://www.manz-automation.com/>

Manz Automation AG - Steigaeckerstr. 5 - 72768 Reutlingen
Handelsregister: HRB 353989 Registergericht Stuttgart
Vorstandsvorsitzender: Dieter Manz
Vorstand: Dieter Manz, Otto Angerhofer, Martin Hipp, Volker Renz
Aufsichtsratsvorsitzender: Dr. Jan Wittig
_____________________________________________________________________
Diese E-Mail ist nur fuer den Empfaenger bestimmt, an den sie gerichtet
ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
aeusserung ist die des Autors und stellt nicht notwendigerweise die
Ansicht oder Meinung der Manz Automation AG dar.
Sind Sie nicht der Empfaenger, so haben Sie diese E-Mail irrtuemlich
erhalten und jegliche Verwendung, Veroeffentlichung, Weiterleitung,
Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.

Weder die Manz Automation AG noch der Absender (Andreas Nolte)
uebernehmen die Haftung fuer Viren; es obliegt Ihrer Verantwortung,
die E-Mail und deren 0 Anhaenge auf Viren zu pruefen.
0 Anhaenge:

_____________________________________________________________________
This e-mail is intended only for the recipient to whom it is addressed
and may include confidential or proprietary information.
Any views or opinions presented in this email are
solely those of the author and do not necessarily represent
those of Manz Automation AG.
If you are not the intended recipient, any disclosure, copying,
or distribution is strictly prohibited.

Neither Manz Automation AG nor the sender (Andreas Nolte)
accepts any responsibility for loss or damage caused by any virus transmitted by this e-mail.
It is the responsibility of the recipient to check this e-mail and any attachments for viruses.
0 Attachments:

_____________________________________________________________________

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-06-09 13:59:06 Re: Bug in pg_dump.exe/pg_restore (Version 8.4 beta 2)
Previous Message Mark Kirkwood 2009-06-09 06:15:38 Cursor with hold emits the same row more than once across commits in 8.3.7