dbTalk Databases Forums  

Re: [BUGS] pg_dump function dumped after required for table definition

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


Discuss Re: [BUGS] pg_dump function dumped after required for table definition in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] pg_dump function dumped after required for table definition - 11-07-2003 , 10:13 PM






Reece Hart <reece (AT) in-machina (DOT) com> writes:
Quote:
I have a hunch about why this happens and is rare. The pftype_id_lookup
function was created AFTER some of the tables using 'alter table set
default ...'. Thus, the function's OID is greater than the OID of the
tables which use them.
Yeah, this is a well-known problem in pg_dump. We need to revise it to
pay attention to the dependency information that's now available in
pg_depend. At the moment your only alternative is to manually fix the
reload order using pg_restore's features for controlling the reload
order ... which features would never have existed in the first place
if we'd had this problem nailed :-(

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
  #2  
Old   
Stephen Frost
 
Posts: n/a

Default Re: [BUGS] pg_dump function dumped after required for table definition - 11-08-2003 , 05:32 AM






--WZxAcDzU5g8uWBfq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Tom Lane (tgl (AT) sss (DOT) pgh.pa.us) wrote:
Quote:
Reece Hart <reece (AT) in-machina (DOT) com> writes:
I have a hunch about why this happens and is rare. The pftype_id_lookup
function was created AFTER some of the tables using 'alter table set
default ...'. Thus, the function's OID is greater than the OID of the
tables which use them.
=20
Yeah, this is a well-known problem in pg_dump. We need to revise it to
pay attention to the dependency information that's now available in
pg_depend. At the moment your only alternative is to manually fix the
reload order using pg_restore's features for controlling the reload
order ... which features would never have existed in the first place
if we'd had this problem nailed :-(
I'm guessing this isn't going to get fixed before 7.4 is released, eh?

--WZxAcDzU5g8uWBfq
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/rNOurzgMPqB3kigRAmbSAJ9fCDFba3HtcoZjp4Mzecf8GVD9Lg CfQvYD
32Qi72NcPjj6PSP5lmdrjck=
=Cdpg
-----END PGP SIGNATURE-----

--WZxAcDzU5g8uWBfq--


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.