| From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
|---|---|
| To: | Rod Taylor <rbt(at)rbt(dot)ca>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
| Cc: | Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: pg_dump in 7.4 |
| Date: | 2002-11-13 14:08:53 |
| Message-ID: | 5.1.0.14.0.20021114010331.05b6ba20@mail.rhyme.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
At 08:52 AM 13/11/2002 -0500, Rod Taylor wrote:
>The biggest trick will be trying to re-combine the ALTER ... ADD
>CONSTRAINT and ALTER ... SET DEFAULT statements back into CREATE TABLE
I'm not sure this would be worth the effort - I'll grant it would be cute,
but getting pg_dump to understand SQL seems a little ambitious. We'd
probably end up defining a portable schema definition language just for
dump files.
To achieve Tom's suggestion it might be simpler to store two versions - the
'full' version, and the 'fully deconstructed' version. If our analysis of
the dependencies meant we needed to break up an object, then we use the
latter.
----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 03 5330 3172 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Curtis Faith | 2002-11-13 14:24:36 | Re: Prepare enabled pgbench |
| Previous Message | Tom Lane | 2002-11-13 13:58:04 | Re: performance regression, 7.2.3 -> 7.3b5 w/ VIEW |