Re: information_schema.referential_constraints broken?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: information_schema.referential_constraints broken?
Дата
Msg-id 6821.1343408269@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: information_schema.referential_constraints broken?  (Igor Neyman <ineyman@perceptron.com>)
Список pgsql-general
Igor Neyman <ineyman@perceptron.com> writes:
> Answering my own question.
> Replacing original definition of _pg_keysequal (in information_schema):

> CREATE FUNCTION _pg_keysequal(smallint[], smallint[]) RETURNS boolean
>     LANGUAGE sql IMMUTABLE  -- intentionally not STRICT, to allow inlining
>     AS 'select $1 <@ $2 and $2 <@ $1';

> with this one:

> CREATE FUNCTION _pg_keysequal(smallint[], smallint[]) RETURNS boolean
>     LANGUAGE sql IMMUTABLE  -- intentionally not STRICT, to allow inlining
>     AS 'select $1 operator(pg_catalog.<@) $2 and $2 operator(pg_catalog.<@) $1';

> makes queries like:
> select * from information_schema.referential_constraints;
> against information_schema.referential_constraints work without errors.

This is known to happen pre-9.0 if you have contrib/intarray installed.

            regards, tom lane

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

Предыдущее
От: Marek Kielar
Дата:
Сообщение: Re: Schema-only dump dumps no constraints, no triggers
Следующее
От: "Ing.Edmundo.Robles.Lopez"
Дата:
Сообщение: REINDEX and COPY is wainting since Jun 21!