Re: pg_depend explained

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Jacobson <joel@gluefinance.com>
Cc: pgsql-hackers@postgresql.org
Date: 2011-01-11T16:46:38Z
Lists: pgsql-hackers
Joel Jacobson <joel@gluefinance.com> writes:
> I need to figure out the order of creation of all objects, not just
> the dependencies for a single object.

In that case try pg_dump's pg_dump_sort.c.  You will never get "the"
order of creation of objects, because that isn't tracked; but you can
find out what a safe order would be.

			regards, tom lane