From 02eb8f4f5c93de08bfd916738e4e3c117d9fd968 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 27 Apr 2006 00:33:46 +0000 Subject: Use schema search path to find the first matching contraint name for SET CONSTRAINT, rather than affecting all constraints in all schemas (which is what we used to do). Also allow schema specifications. Kris Jurka --- doc/src/sgml/ref/set_constraints.sgml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/set_constraints.sgml b/doc/src/sgml/ref/set_constraints.sgml index 3bcde91f386..9af82008aa3 100644 --- a/doc/src/sgml/ref/set_constraints.sgml +++ b/doc/src/sgml/ref/set_constraints.sgml @@ -1,4 +1,4 @@ - + SET CONSTRAINTS @@ -45,10 +45,10 @@ SET CONSTRAINTS { ALL | name [, ... SET CONSTRAINTS with a list of constraint names changes - the mode of just those constraints (which must all be deferrable). If - there are multiple constraints matching any given name, all are affected. - SET CONSTRAINTS ALL changes the mode of all deferrable - constraints. + the mode of just those constraints (which must all be deferrable). The + current schema search path is used to find the first matching name if + no schema name is specified. SET CONSTRAINTS ALL + changes the mode of all deferrable constraints. @@ -93,13 +93,6 @@ SET CONSTRAINTS { ALL | name [, ... foreign-key constraints. - - The SQL standard says that constraint names appearing in SET - CONSTRAINTS can be schema-qualified. This is not yet - supported by PostgreSQL: the names must - be unqualified, and all constraints matching the command will be - affected no matter which schema they are in. - -- cgit v1.2.3