Re: Triggers and Domains

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Triggers and Domains
Дата
Msg-id 13210.1251647709@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Triggers and Domains  (ekekakos <ekekakos@hol.gr>)
Ответы Re: Triggers and Domains  (ekekakos <ekekakos@hol.gr>)
Список pgsql-novice
ekekakos <ekekakos@hol.gr> writes:
> I have a DOMAIN LastUpdateUser and I want to use it in all the tables of the
> database. I want also to create a trigger which will fulfill this domain
> with the user name.
> Is it possible to do it on Domain instead of the table?

No.  But wouldn't a DEFAULT expression attached to the domain serve just
as well?

            regards, tom lane

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

Предыдущее
От: richard terry
Дата:
Сообщение: Re: numbering rows in a view
Следующее
От: ekekakos
Дата:
Сообщение: Re: Triggers and Domains