Re: foreign key constraint not working when index tablespace is not default.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: foreign key constraint not working when index tablespace is not default.
Дата
Msg-id 16675.1112135347@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: foreign key constraint not working when index tablespace  (Joel Krajden <joelk@cs.concordia.ca>)
Ответы Re: foreign key constraint not working when index tablespace  (Joel Krajden <joelk@cs.concordia.ca>)
Список pgsql-bugs
Joel Krajden <joelk@cs.concordia.ca> writes:
> But if I create the tables as a mortal user or create them as postgres
> but in the schema of user joelk and grant all to user joelk, I can
> insert data without the foreign key constraint being respected. Now if
> I drop the foreign key constraint and recreate it with a schema prefix
> in the references section, the constarint works fine.

This is even harder to believe than the first report.  Could we see a
complete, self-contained test case?  A SQL script that demonstrates the
problem from a standing start in an empty database is what I have in mind.

(What I suspect is that you have multiple similarly-named tables in
different schemas and are getting confused by that...)

            regards, tom lane

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

Предыдущее
От: Joel Krajden
Дата:
Сообщение: Re: foreign key constraint not working when index tablespace
Следующее
От: Neil Conway
Дата:
Сообщение: Re: BUG #1567: can't hide password with pg_autovacuum