pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Pettus <xof@thebuild.com>
To: stan <stanb@panix.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Examing cotets of NEW & OLD in a function programed in perl
Date: Tue, 3 Mar 2020 13:28:14 -0800
Message-ID: <239DF6A4-EB8D-415E-9084-201A44E15C48@thebuild.com> (raw)
In-Reply-To: <20200303212601.GA6469@panix.com>
References: <20200303173901.GA5019@panix.com>
	<6106.1583258340@sss.pgh.pa.us>
	<20200303212601.GA6469@panix.com>



> On Mar 3, 2020, at 13:26, stan <stanb@panix.com> wrote:
> So, they should just be visible as OLD, and NEW as hasshes?

They're documented here:

	https://www.postgresql.org/docs/current/plperl-triggers.html

A global hash variable $_TD is available in the trigger function with all sorts of trigger-related info.

--
-- Christophe Pettus
   xof@thebuild.com






view thread (4+ messages)

Message-ID: <239DF6A4-EB8D-415E-9084-201A44E15C48@thebuild.com>
Permalink:  ../239DF6A4-EB8D-415E-9084-201A44E15C48@thebuild.com/
Also on:    postgresql.org/message-id/239DF6A4-EB8D-415E-9084-201A44E15C48@thebuild.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 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-general@postgresql.org
  Cc: xof@thebuild.com, stanb@panix.com, tgl@sss.pgh.pa.us
  Subject: Re: Examing cotets of NEW & OLD in a function programed in perl
  In-Reply-To: <239DF6A4-EB8D-415E-9084-201A44E15C48@thebuild.com>
  References: <20200303173901.GA5019@panix.com> <6106.1583258340@sss.pgh.pa.us> <20200303212601.GA6469@panix.com> <239DF6A4-EB8D-415E-9084-201A44E15C48@thebuild.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