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

From Robert Haas
Subject Re: Check constraints on non-immutable keys
Date
Msg-id AANLkTil5zKYDdNosSx9zyiLanhORA_XhGdEfwQgsONXf@mail.gmail.com
Whole thread Raw
In response to Re: Check constraints on non-immutable keys  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Check constraints on non-immutable keys  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Jun 30, 2010 at 11:02 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> On Wed, Jun 30, 2010 at 16:38, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> The example seems to me to be in the category of "so don't do that"
>>> rather than something that we need to save users from.  Yes, it's
>
>> In that case, should we at least throw a warning?
>
> I don't see a reason to do that.  If we could distinguish actually
> problematic cases from safe cases, it would be helpful, but we can't.
>
> Moreover, throwing a warning would encourage people to do actively
> *unsafe* things to suppress the warning --- like marking functions
> as immutable when they really aren't.

My scintillating contribution to this discussion is the observation
that unrestorable dumps suck.

A lot.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Keepalives win32
Next
From: Bruce Momjian
Date:
Subject: Re: Keepalives win32