pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: DAVID ROTH <adaptron@comcast.net>
To: Christophe Pettus <xof@thebuild.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Trigger Function question
Date: Mon, 10 Jul 2023 14:46:01 -0400 (EDT)
Message-ID: <108381110.172129.1689014761308@connect.xfinity.com> (raw)
In-Reply-To: <8EE88849-3AF9-4B39-B547-B502173AE5F6@thebuild.com>
References: <1875078143.170839.1689013230630@connect.xfinity.com>
	<DF18ED9A-83D1-4CE8-888F-2BF3393CD9A3@thebuild.com>
	<1715546791.171305.1689013799237@connect.xfinity.com>
	<870476B2-8403-46F4-BA0F-A03E226B07E3@thebuild.com>
	<242941212.171664.1689014226731@connect.xfinity.com>
	<8EE88849-3AF9-4B39-B547-B502173AE5F6@thebuild.com>

I saw your message about a "few" columns and missed the new.* notation.
Is there a way to get new.* into a jsonb column?

> On 07/10/2023 2:38 PM EDT Christophe Pettus <xof@thebuild.com> wrote:
> 
>  
> > On Jul 10, 2023, at 11:37, DAVID ROTH <adaptron@comcast.net> wrote:
> > 
> > Thanks for the example. I have a test trigger now that does that but my application needs all of the columns.
> 
> I'm not quite sure I understanding.  Logging NEW.* and OLD.* *does* get all the columns, without having to specific query to find out which columns the table that cause the trigger to fire has.





view thread (12+ messages)  latest in thread

Message-ID: <108381110.172129.1689014761308@connect.xfinity.com>
Permalink:  ../108381110.172129.1689014761308@connect.xfinity.com/
Also on:    postgresql.org/message-id/108381110.172129.1689014761308@connect.xfinity.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: adaptron@comcast.net, xof@thebuild.com
  Subject: Re: Trigger Function question
  In-Reply-To: <108381110.172129.1689014761308@connect.xfinity.com>
  References: <1875078143.170839.1689013230630@connect.xfinity.com> <DF18ED9A-83D1-4CE8-888F-2BF3393CD9A3@thebuild.com> <1715546791.171305.1689013799237@connect.xfinity.com> <870476B2-8403-46F4-BA0F-A03E226B07E3@thebuild.com> <242941212.171664.1689014226731@connect.xfinity.com> <8EE88849-3AF9-4B39-B547-B502173AE5F6@thebuild.com> <108381110.172129.1689014761308@connect.xfinity.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