Re: References to arbitrary database objects that are suitable for pg_dump - Mailing list pgsql-hackers

From Tom Lane
Subject Re: References to arbitrary database objects that are suitable for pg_dump
Date
Msg-id 1193.1480118440@sss.pgh.pa.us
Whole thread Raw
In response to References to arbitrary database objects that are suitable for pg_dump  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Responses Re: References to arbitrary database objects that are suitable for pg_dump  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> The challenge I'm running into is finding a way to store a reference to 
> an arbitrary object that will survive a rename as well as working with 
> pg_dump.

Can't you do it like pg_depend does, that is store the class and object
OIDs?  Then use pg_describe_object() to turn that into text when dumping.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fixed pg_class refcache leak when the meta tuple in pg_class in invalid.
Next
From: Paul Ramsey
Date:
Subject: Re: User-defined Operator Pushdown and Collations