pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Pettus <xof@thebuild.com>
To: DAVID ROTH <adaptron@comcast.net>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Trigger Function question
Date: Mon, 10 Jul 2023 11:52:04 -0700
Message-ID: <13C4897F-7D63-40F2-A63F-BA0C0CDAAE39@thebuild.com> (raw)
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>



> On Jul 10, 2023, at 11:46, DAVID ROTH <adaptron@comcast.net> wrote:
> 
> Is there a way to get new.* into a jsonb column?

The to_jsonb() function accepts a row type like NEW.*, and returns a JSONB object with the keys as column names.




view thread (12+ messages)  latest in thread

Message-ID: <13C4897F-7D63-40F2-A63F-BA0C0CDAAE39@thebuild.com>
Permalink:  ../13C4897F-7D63-40F2-A63F-BA0C0CDAAE39@thebuild.com/
Also on:    postgresql.org/message-id/13C4897F-7D63-40F2-A63F-BA0C0CDAAE39@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, adaptron@comcast.net
  Subject: Re: Trigger Function question
  In-Reply-To: <13C4897F-7D63-40F2-A63F-BA0C0CDAAE39@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> <108381110.172129.1689014761308@connect.xfinity.com> <13C4897F-7D63-40F2-A63F-BA0C0CDAAE39@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