Question about CONSTRAINT TRIGGER

Поиск
Список
Период
Сортировка
От ZM Yang
Тема Question about CONSTRAINT TRIGGER
Дата
Msg-id CALPr3ozuYSC4=8VWf8uB_oEdCChKWyk58GBMSBgXZT6+nFvZ1Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: Question about CONSTRAINT TRIGGER  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
Hi folks,

I'm confused about the usage of CONSTRAINT TRIGGER. More specifically, the documentation says that the name of another table referenced by the constraint can be specified in a FROM clause:

"The (possibly schema-qualified) name of another table referenced by the constraint. This option is used for foreign-key constraints and is not recommended for general use. This can only be specified for constraint triggers."

(1)
How can the table name specified in the the FROM clause be used? It seems that it cannot be referenced in the WHERE clause. (Please correct me if I'm wrong) 

(2)
How is the table specified in the FROM clause used for FK constraints?

Thanks,
ZM

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

Предыдущее
От: litu16
Дата:
Сообщение: How to convert a text variable into a timestamp in postgreSQL?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: How to convert a text variable into a timestamp in postgreSQL?