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: 13210.1251647709@sss.pgh.pa.us (view raw or flat)
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

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-2014 The PostgreSQL Global Development Group