Re: pg_dump and check-constraints
От
Tom Lane
Тема
Re: pg_dump and check-constraints
Дата
Msg-id
18517.1254406031@sss.pgh.pa.us
Ответ на
pg_dump and check-constraints (A. Kretschmer)
Список
Дерево обсуждения
pg_dump and check-constraints "A. Kretschmer" <andreas.kretschmer@schollglas.com>
Re: pg_dump and check-constraints Tom Lane <tgl@sss.pgh.pa.us>
"A. Kretschmer" writes: > test=# create function check_b() returns bool as $$ declare s int; begin select into s sum(i) from b; if s > 3 then return true; else return false; end if; end;$$ language plpgsql; > test=*# create table a (i int check(check_b())); This is unsupported, and will fail in *many* situations not only pg_dump. A check constraint is only expected to examine the current row of its table. regards, tom lane
В списке pgsql-general по дате отправления
От: Ricky Tompu Breaky
Дата: