dbTalk Databases Forums  

[BUGS] Not a real bug, but an error

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Not a real bug, but an error in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andrea D.
 
Posts: n/a

Default [BUGS] Not a real bug, but an error - 10-29-2004 , 12:58 PM






Hi, I've just upgraded Roma 7.3.x to 7.4.5 on a Mandrake 10.1 community.
I've used pg_dumpall (Roma version 7.4.5) to dump my previous databases to a
file in plain text form and then trend to restore using 'psql -f'.
But there was an error: a function needed in a constraint of a table was
placed after the table definition! So it was impossible to create the
table!
It was just a matter to edit the file and cut and copy the function
definition in the right place, drop the database and run the file again,
but it could be a good idea to find a workaround. Actually, I had to dump
the schema and data separately, as one file was to big to manage, but it
was just a matter of confort.
Thank for the great work.
Postgresql is really a wonderfull thing.
Andrea from Italy

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org

Reply With Quote
  #2  
Old   
Markus Bertheau
 
Posts: n/a

Default Re: [BUGS] Not a real bug, but an error - 10-31-2004 , 05:57 AM






Christopher Kings-Lynne has made pg_dump and pg_dumpall much more
reliable in this respect for 8.0.

=D0=92 =D0=A7=D1=82=D0=B2, 28.10.2004, =D0=B2 16:46, Andrea D. =D0=BF=D0=B8=
=D1=88=D0=B5=D1=82:
Quote:
Hi, I've just upgraded Roma 7.3.x to 7.4.5 on a Mandrake 10.1 community.
I've used pg_dumpall (Roma version 7.4.5) to dump my previous databases t=
o a
file in plain text form and then trend to restore using 'psql -f'.
But there was an error: a function needed in a constraint of a table was
placed after the table definition! So it was impossible to create the
table!
It was just a matter to edit the file and cut and copy the function
definition in the right place, drop the database and run the file again,
but it could be a good idea to find a workaround. Actually, I had to dump
the schema and data separately, as one file was to big to manage, but it
was just a matter of confort.
Thank for the great work.
Postgresql is really a wonderfull thing.
Andrea from Italy
=20
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org
--=20
Markus Bertheau <twanger (AT) bluetwanger (DOT) de>


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #3  
Old   
Gaetano Mendola
 
Posts: n/a

Default Re: [BUGS] Not a real bug, but an error - 11-01-2004 , 12:25 PM



Andrea D. wrote:
Quote:
Hi, I've just upgraded Roma 7.3.x to 7.4.5 on a Mandrake 10.1 community.
I've used pg_dumpall (Roma version 7.4.5) to dump my previous databases to a
file in plain text form and then trend to restore using 'psql -f'.
But there was an error: a function needed in a constraint of a table was
placed after the table definition! So it was impossible to create the
table!
It was just a matter to edit the file and cut and copy the function
definition in the right place, drop the database and run the file again,
but it could be a good idea to find a workaround. Actually, I had to dump
the schema and data separately, as one file was to big to manage, but it
was just a matter of confort.
Thank for the great work.
Postgresql is really a wonderfull thing.
Andrea from Italy
pg_dump 8.0 will work better. However is not a good idea dump the schema and
the data in separate files, for example you'll miss the FK creation delayed after the
data load.



Regards
Gaetano Mendola


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.