Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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


pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group