Subselects in CHECK clause ...

Поиск
Список
Период
Сортировка
От James Robinson
Тема Subselects in CHECK clause ...
Дата
Msg-id 6881FC4D-8F7C-477B-9AAA-C9B5282D88B2@socialserve.com
обсуждение исходный текст
Ответы Re: Subselects in CHECK clause ...
Список pgsql-sql
I see that subselects are not directly supported in check clauses,  
but one can work around that by writing a stored function which  
returns boolean and performs the subselect. Are there any known  
gotchas with doing this?

The CREATE TABLE docs regarding CHECK clauses states:
"Currently, CHECK expressions cannot contain subqueries nor refer to  
variables other than columns of the current row."

Is this due to someone not yet writing the necessary code to remove  
the subquery clause, or is there a more fundamental reason?

----
James Robinson
Socialserve.com



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

Предыдущее
От: "Aaron Bono"
Дата:
Сообщение: Re: consistent random order
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: consistent random order