Re: NOT DEFERRABLE as default, why and how to manage it.

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
Subject: Re: NOT DEFERRABLE as default, why and how to manage it.
Date: 2008-08-19 13:19:50
Message-ID: 200808191620.07333.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Am Tuesday, 19. August 2008 schrieb Ivan Sergio Borgonovo:
> > Is there any reason they put it that way in the standard other than
> > the mantra "stricter is better"?
>
> After reflecting a bit I think it is a matter of "failing earlier".

Deferrable constraints are an optional feature of SQL, and the reason this
default is chosen is that systems with and without the feature behave the
same.

> But it doesn't make things more transparent.
> Since there is no simple standard way to see which constraints are
> deferrable and no simple way to alter them.

Query information_schema.table_constraints to find out about existing
constraints and their parameters.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Clark 2008-08-19 13:48:50 default postgresql.conf
Previous Message Gordon 2008-08-19 12:41:58 Updates and deletes with joins