Re: Triggers and Domains

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ekekakos <ekekakos(at)hol(dot)gr>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Triggers and Domains
Date: 2009-08-30 15:55:09
Message-ID: 13210.1251647709@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

ekekakos <ekekakos(at)hol(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message ekekakos 2009-08-30 16:32:22 Re: Triggers and Domains
Previous Message richard terry 2009-08-30 12:11:25 Re: numbering rows in a view