Re: Check constraints on non-immutable keys - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Check constraints on non-immutable keys
Date
Msg-id 13982.1277921622@sss.pgh.pa.us
Whole thread Raw
In response to Re: Check constraints on non-immutable keys  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Check constraints on non-immutable keys
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> On Wed, Jun 30, 2010 at 19:16, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I concur with the thought that the most useful solution might be a way
>> to tell pg_restore to remove or disable check constraints.

> Uh, say what? Are you saying pg_restore should actually remove
> something from the database schema? And thus no longer be valid for
> taking database backups?

pg_restore, not pg_dump.  It's no more unreasonable an idea than the
current pg_restore options for selective restores, AFAICS.  You can
already cause pg_restore to not restore PK and FK constraints, for
example, so why not check constraints?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Check constraints on non-immutable keys
Next
From: Heikki Linnakangas
Date:
Subject: Re: [BUGS] Server crash while trying to read expression using pg_get_expr()