RETURN NULL in the sample of insert trigger on partitioned table

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: seb55(at)op(dot)pl
Subject: RETURN NULL in the sample of insert trigger on partitioned table
Date: 2018-07-11 09:34:59
Message-ID: 153130169932.1401.6073393592184007233@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2018-07-11 20:11:13 Re: Building client-only fails
Previous Message Jürgen Purtz 2018-07-11 09:07:29 Re: Images in the official documentation