Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qIvtk-0007aF-66 for pgsql-general@arkaria.postgresql.org; Mon, 10 Jul 2023 18:46:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qIvti-0004Yj-8g for pgsql-general@arkaria.postgresql.org; Mon, 10 Jul 2023 18:46:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qIvth-0004YZ-UD for pgsql-general@lists.postgresql.org; Mon, 10 Jul 2023 18:46:09 +0000 Received: from resdmta-h1p-028598.sys.comcast.net ([2001:558:fd02:2446::e]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qIvtd-0037Z4-0y for pgsql-general@lists.postgresql.org; Mon, 10 Jul 2023 18:46:08 +0000 Received: from resomta-h1p-028509.sys.comcast.net ([96.102.179.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resdmta-h1p-028598.sys.comcast.net with ESMTP id IrKOqwnAOMv98IvtaqMCYM; Mon, 10 Jul 2023 18:46:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1689014762; bh=lxOeiiBmmJGfN0OEgJADROncw9Jj3wTIVWdqhXfiFt8=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type:Xfinity-Spam-Result; b=YTEPT6zlkWbpNalgG1frMLXFo2ItdJwtGjH5fAgvyko6OXp5ICeHYrNtwYOH8ElZZ QF5YFz6OfBqR5w9fnPcmFvasyhEI93ol+bkhIy2fCjGYkQs9Uas6+BpP0igSRL+uL5 +7dQKLLAlwa/HjhL3JEIIVAdfkrC4vXYcQClb0IyDPban5BhlaoDW39w+08BThTUI8 rTmTD3/3oCLelt/n+ivnZTs7ijFhQg3YnbQNp5N/CtRU7NS75zpDxJBZ1+nUVP7rQ+ Y61ewDSXrbbqUAbAAlpAnMf2MCROlQDX6zy9uDbtgq8XsbqsNoYhPc+sIRLo0ic451 cPSQYLeEH+zzQ== Received: from oxappp-hoa-22o.email.comcast.net ([96.116.234.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resomta-h1p-028509.sys.comcast.net with ESMTPS id IvtZqQCsVcVv3IvtZqPMpR; Mon, 10 Jul 2023 18:46:01 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedviedrvdekgdduvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucenucfjughrpeffhffvvefkjghfufggtgfgrfgkofhisehtjegstdertdejnecuhfhrohhmpeffteggkfffucftqffvjfcuoegruggrphhtrhhonhestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhephefhkeejhffgffffhfdvieelvefguedvtdejtdevtefhiefhtdetvdehhedukeefnecukfhppeeliedrudduiedrvdefgedrvdegiedpvdeitddumeduledumeekgedttdemugdvrgdtmeeiledvrgemugegtggvmeefvggtvdemvgdtsgefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepohigrghpphhpqdhhohgrqddvvdhordgvmhgrihhlrdgtohhmtggrshhtrdhnvghtpdhinhgvthepleeirdduudeirddvfeegrddvgeeipdhmrghilhhfrhhomheprggurghpthhrohhnsegtohhmtggrshhtrdhnvghtpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepgihofhesthhhvggsuhhilhgurdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-Xfinity-VMeta: sc=0.00;st=legit Date: Mon, 10 Jul 2023 14:46:01 -0400 (EDT) From: DAVID ROTH To: Christophe Pettus Cc: "pgsql-general@lists.postgresql.org" Message-ID: <108381110.172129.1689014761308@connect.xfinity.com> In-Reply-To: <8EE88849-3AF9-4B39-B547-B502173AE5F6@thebuild.com> References: <1875078143.170839.1689013230630@connect.xfinity.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> Subject: Re: Trigger Function question MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev39 X-Originating-IP: 2601:191:8400:d2a0:692a:d4ce:3ec2:e0b3 X-Originating-Client: open-xchange-appsuite List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 wrote: > > > > On Jul 10, 2023, at 11:37, DAVID ROTH 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.