Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j9F5W-0001wZ-Q2 for pgsql-general@arkaria.postgresql.org; Tue, 03 Mar 2020 21:28:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9F5V-000892-Gr for pgsql-general@arkaria.postgresql.org; Tue, 03 Mar 2020 21:28:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j9F5V-00088v-3r for pgsql-general@lists.postgresql.org; Tue, 03 Mar 2020 21:28:25 +0000 Received: from smtp124.iad3b.emailsrvr.com ([146.20.161.124]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j9F5O-0003qw-6r for pgsql-general@lists.postgresql.org; Tue, 03 Mar 2020 21:28:23 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp8.relay.iad3b.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 5FA6340115; Tue, 3 Mar 2020 16:28:16 -0500 (EST) X-Sender-Id: xof@thebuild.com Received: from [10.1.25.1] (157-131-136-66.dedicated.static.sonic.net [157.131.136.66]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:25 (trex/5.7.12); Tue, 03 Mar 2020 16:28:16 -0500 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Examing cotets of NEW & OLD in a function programed in perl From: Christophe Pettus In-Reply-To: <20200303212601.GA6469@panix.com> Date: Tue, 3 Mar 2020 13:28:14 -0800 Cc: Tom Lane , pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <239DF6A4-EB8D-415E-9084-201A44E15C48@thebuild.com> References: <20200303173901.GA5019@panix.com> <6106.1583258340@sss.pgh.pa.us> <20200303212601.GA6469@panix.com> To: stan X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Mar 3, 2020, at 13:26, stan 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