SET CONSTRAINTS not schema-aware

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема SET CONSTRAINTS not schema-aware
Дата
Msg-id Pine.LNX.4.44.0305111812500.2399-100000@peter.localdomain
обсуждение исходный текст
Ответы Re: SET CONSTRAINTS not schema-aware  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-hackers
SET CONSTRAINTS doesn't allow you to schema-qualify a constraint name.
Here's an example:

create schema test;
create table test.foo (a int primary key);
create table test.bar (b int primary key, c int constraint myconstraint references test.foo);

-- This succeeds even though schema "test" is not in the search path:
set constraints myconstraint immediate;

-- This is what should work:
set constraints test.myconstraint immediate;
ERROR:  parser: parse error at or near "." at character 21

Comments?

-- 
Peter Eisentraut   peter_e@gmx.net



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: problem building tablefunc in 7.4
Следующее
От: alex avriette
Дата:
Сообщение: psql inability to select a socket