Re: default value based on select

From: Volkan YAZICI <yazicivo(at)ttmail(dot)com>
To: Pedro Doria Meunier <pdoria(at)netmadeira(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: default value based on select
Date: 2008-04-05 11:47:25
Message-ID: 87hcegbk1e.fsf@alamut.mobiliz.com.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 5 Apr 2008, Pedro Doria Meunier <pdoria(at)netmadeira(dot)com> writes:
> The record being created has a column with an Id that has to be passed as an
> argument to the function that, in turn, fills the other column in the same
> record.

Doesn't BEFORE INSERT/UPDATE trigger solve this problem? (If not, I
wonder what is missing.)

Regards.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Dunstan 2008-04-05 12:07:27 Re: modules
Previous Message Glyn Astill 2008-04-05 11:47:08 Re: [Slony1-general] ERROR: XX000: cache lookup failed for relation