Re: [HACKERS] Ordering of pg_dump output

From: wieck(at)debis(dot)com (Jan Wieck)
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Ordering of pg_dump output
Date: 2000-02-08 19:24:21
Message-ID: m12IGFJ-0003kMC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> The simplest real solution I've heard so far is to dump database objects
> in order by OID rather than doing it strictly by type.
>
> Is anyone working on this, or does anyone want to? I haven't looked at
> pg_dump in a while, but I know some other folks have been hacking it
> recently.

Dumping by Oid or building up a framework of dependencies,
these where the options. Don't forget, SQL language functions
are (in contrast to procedural ones) parsed at CREATE time.
So any operator, aggregate or table you use inside must
exist. And they can be used in turn in many places, so it
isn't simple at all.

I think finally pg_dump must scan the entire schema two
times, first to get all the Oid's, second to dump all the
objects.

AFAIK, nobody is working on it. And starting on it right now
seems a little late to make it until BETA.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#========================================= wieck(at)debis(dot)com (Jan Wieck) #

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Don Baccus 2000-02-08 19:26:16 Re: [HACKERS] Ordering of pg_dump output
Previous Message Mark Hollomon 2000-02-08 19:01:26 Re: [HACKERS] Ordering of pg_dump output