pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: weigelt@metux.de
Cc: PGSQL-SQL <pgsql-sql@postgresql.org>
Subject: Re: question on rules
Date: Thu, 12 Jun 2003 21:57:25 -0400
Message-ID: <22503.1055469445@sss.pgh.pa.us> (raw)
In-Reply-To: <20030613012611.GA25276@metux.de>
References: <20030613012611.GA25276@metux.de>

weigelt@metux.de writes:
> i'd like to write an rule which fills out some empty attrs on 
> insert (w/ data from other given attrs).

You'd be better off doing this with a BEFORE INSERT trigger.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <22503.1055469445@sss.pgh.pa.us>
Permalink:  ../22503.1055469445@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22503.1055469445@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, weigelt@metux.de
  Subject: Re: question on rules
  In-Reply-To: <22503.1055469445@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox