Re: pg_dump: Sorted output, referential integrity

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Christof Petig <christof(at)petig-baender(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_dump: Sorted output, referential integrity
Date: 2001-12-07 23:21:37
Message-ID: 3.0.5.32.20011208102137.031e8840@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 10:02 8/12/01 +1100, Philip Warner wrote:
>At 15:16 7/12/01 +0100, Christof Petig wrote:
>>>
>>> Not really very generalizable when you consider user defined types,
>>> triggers etc.
>>
>>Hmmm. But if we have a primary key on columns (A,B,C) and request the data
>>'order by A,B,C' this should be portable, shouldn't it?
>>If we don't have a primary key simply ordering by 1,2,3,...n should also
>work.
>>Or am I missing something?
>
>My mistake; I thought you wanted to compare metadata. Sorting data by PK
>seems like a reasonable thing to do.
>

To make the dump diff-able, we probably need to sort the metadata by type &
name as well.

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message thomas 2001-12-08 03:24:41 pgsql/doc/src/sgml Makefile cvs.sgml datatype. ...
Previous Message Philip Warner 2001-12-07 23:02:50 Re: pg_dump: Sorted output, referential integrity