pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emils Klotins <emils@dot.lv>
To: pgsql-sql@postgresql.org
Subject: trigger or something else?
Date: Wed, 28 Jun 2000 12:29:24 +0200
Message-ID: <3959EFA4.13956.28AD4E96@localhost> (raw)

Hello,

I have a table that has to have several fields with different names, 
but equal content. Sounds stupid, but it is because I have 2 
different programs querying the same table for user information and 
each of them uses differently named fields.

Eg. I have fields passwd and password.
When passwd field changes, password must automatically change 
to be the same as passwd.

I was wondering whether I need a trigger for that, or could I 
somehow manage to specify that in the "create table" stmt.

If I need to do it via trigger, then I apparently need the plpgsql, right?
Could you tell which configure option enables that? --enable-
plpgsql? 

Thanks in advamce for any comments.

Emils



view thread (4+ messages)  latest in thread

Message-ID: <3959EFA4.13956.28AD4E96@localhost>
Permalink:  ../3959EFA4.13956.28AD4E96@localhost/
Also on:    postgresql.org/message-id/3959EFA4.13956.28AD4E96@localhost

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: emils@dot.lv
  Subject: Re: trigger or something else?
  In-Reply-To: <3959EFA4.13956.28AD4E96@localhost>
  References: <3959EFA4.13956.28AD4E96@localhost>

* 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