Re: Using SUBSELECT in CHECK expressions
От | Michael Glaesemann |
---|---|
Тема | Re: Using SUBSELECT in CHECK expressions |
Дата | |
Msg-id | 7A16FD0F-0FB3-11D8-B410-0005029FC1A7@myrealbox.com обсуждение исходный текст |
Ответ на | Re: Using SUBSELECT in CHECK expressions (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Using SUBSELECT in CHECK expressions
|
Список | pgsql-general |
On Wednesday, November 5, 2003, at 06:26 AM, Tom Lane wrote: > If you are satisfied with only a one-directional constraint (apply the > check just when the constrained table is modified), you can have it > today. > Just put the SELECT into a function that's called by the CHECK > expression. Tom, you've just provided the solution to something I've been thinking about a lot. I really have to start thinking in terms of functions. Are there any restrictions on the function used in the CHECK, i.e., it must be STRICT or IMMUTABLE? I took a quick look at the developer docs (thinking they'd be for 7.4RC1. I was happily suprised to see they're already labeled 7.5 dev!) Michael grzm myrealbox com
В списке pgsql-general по дате отправления: