Re: Table/Column Constraints

From: Rod Taylor <rbt(at)zort(dot)on(dot)ca>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Table/Column Constraints
Date: 2000-11-21 04:32:44
Message-ID: 3A19FAEC.5208F775@zort.on.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

> > It would be nice, however, if pg_dump produced the exact same sql as used to
> > create a table. For instance, if you specify a column constraint, it comes
> > back as a column constraint, rather than a trigger, or a table constraint.
> > This would especially aid portability of the dumped SQL.
>
> Right, exactly my point above. We discard too much information that
> needs to be retained somewhere...

I like this conversation as not a day goes by where I don't wish I could
edit the dump of a database rather than keeping structure entirely
seperate -- and actually do so in a useful manner. That said, whats the
possibility of maintaining comments if the SQL dumps actually became
humanly editable?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-11-21 04:33:29 Re: [HACKERS] Re: pgsql/src/backend/access/transam (xlog.c)
Previous Message Tom Lane 2000-11-21 04:24:49 Re: [HACKERS] Re: pgsql/src/backend/utils/adt (oid.c)