Re: pulling metadata creation strings from metadata tables?

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pulling metadata creation strings from metadata tables?
Date: 2009-12-19 07:10:30
Message-ID: 4B2C7C66.8020705@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 19/12/2009 2:24 PM, Gauthier, Dave wrote:
> Hi:
>
> Are metadata creation strings, in sql form, stored anywhere in the
> metadata tables?

Not AFAIK, no.

How would you handle subsequent ALTER commands and the like? What if you
ALTERed two tables in a way that could only succeed if done in a
particular order (such as creating a foreign key relationship between
two tables) ?

Have a look at pg_dump . It knows how to create appropriate DDL to
re-create particular schema objects, and can handle the various ordering
and dependency issues involved.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-12-19 07:10:36 Re: PL/Perl Performance Problems
Previous Message Alex - 2009-12-19 07:07:56 Re: PL/Perl Performance Problems