Re: SET CONSTRAINTS not schema-aware - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: SET CONSTRAINTS not schema-aware
Date
Msg-id 200305150313.h4F3Dms01854@candle.pha.pa.us
Whole thread Raw
In response to Re: SET CONSTRAINTS not schema-aware  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SET CONSTRAINTS not schema-aware
List pgsql-hackers
Tom Lane wrote:
> Bruno Wolff III <bruno@wolff.to> writes:
> >   Peter Eisentraut <peter_e@gmx.net> wrote:
> >> SET CONSTRAINTS doesn't allow you to schema-qualify a constraint name.
> 
> > I am pretty sure I saw some comments in the discussion about sequence
> > naming that constraints are per table and giving them a schema name
> > makes no sense. The table they are for has the schema name in it.
> 
> Yeah.  We had that discussion at some point during the 7.3 development
> cycle, and concluded we liked table-local naming for constraints better
> than the SQL spec's global constraint names.
> 
> SET CONSTRAINTS still does what it used to do, which is to alter the
> behavior of all constraints with the given name.  We should probably
> expand the syntax so that a particular table name can be mentioned.

Is this a TODO?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Win32, compiles, under, MinGW/Msys!
Next
From: Tom Lane
Date:
Subject: Re: SET CONSTRAINTS not schema-aware