public inbox for [email protected]
help / color / mirror / Atom feedFrom: Bruce Momjian <[email protected]>
To: [email protected]
To: [email protected]
Subject: Re: RETURN NULL in the sample of insert trigger on partitioned table
Date: Tue, 7 Aug 2018 13:57:42 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Wed, Jul 11, 2018 at 09:34:59AM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.6/static/ddl-partitioning.html
> Description:
>
> Why in provided samples of "insert" triggers on partitioned table at the end
> of the triggers you provide "return NULL" not "return NEW"?
>
> This causes, among other things, problems with the GET DIAGNOSTICS clause
> var = ROW_COUNT clause.
Uh, you mean measurement_insert_trigger? Returning NEW would cause the
row to be inserted into the referenced table.
--
Bruce Momjian <[email protected]> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
view thread (2+ messages)
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: RETURN NULL in the sample of insert trigger on partitioned table
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox