pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Mathieu Arnold <mat@mat.cc>
To: pgsql-sql@postgresql.org
Subject: Re: triggers and plpgsql question
Date: Tue, 27 Aug 2002 15:38:45 -0700
Message-ID: <200208271538.45877.josh@agliodbs.com> (raw)
In-Reply-To: <374862253.1030472287@andromede.reaumur.absolight.net>
References: <374862253.1030472287@andromede.reaumur.absolight.net>


Mathieu,

> The thing I need, is to be able to know what does NEW contains, and I have
> not found out any mean to do so. If it's not possible to do so, I'll write
> a function per table, but for the beauty of all this, I would have liked to
> do it the way above.

You can't do this in PL/pgSQL.   See the online documentation on writing 
triggers in C; that is the only way to get what you want.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (4+ messages)  latest in thread

Message-ID: <200208271538.45877.josh@agliodbs.com>
Permalink:  ../200208271538.45877.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200208271538.45877.josh@agliodbs.com

 · 

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: josh@agliodbs.com, mat@mat.cc
  Subject: Re: triggers and plpgsql question
  In-Reply-To: <200208271538.45877.josh@agliodbs.com>

* 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