Re: The exact timing at which CHECK constraints are checked

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: The exact timing at which CHECK constraints are checked
Дата
Msg-id 26634.1323931284@sss.pgh.pa.us
обсуждение исходный текст
Ответ на The exact timing at which CHECK constraints are checked  (Takahiro Noda <noda.takahiro.47m@st.kyoto-u.ac.jp>)
Ответы Re: The exact timing at which CHECK constraints are checked  (Takahiro Noda <noda.takahiro.47m@st.kyoto-u.ac.jp>)
Список pgsql-novice
Takahiro Noda <noda.takahiro.47m@st.kyoto-u.ac.jp> writes:
> I'm new to PostgreSQL and having been learning SQL. I'm uncertain
> about the exact timing at which CHECK constraints are checked.

They're checked at the instant that a row is inserted or updated.
If you really need a deferred check, you'll need to build it yourself
using an AFTER ROW trigger.

            regards, tom lane

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

Предыдущее
От: Takahiro Noda
Дата:
Сообщение: The exact timing at which CHECK constraints are checked
Следующее
От: pesiar
Дата:
Сообщение: Help with installing pgAdmin 3