| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | seb55(at)op(dot)pl, pgsql-docs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: RETURN NULL in the sample of insert trigger on partitioned table |
| Date: | 2018-08-07 17:57:42 |
| Message-ID: | 20180807175742.GG7297@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-docs |
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 <bruce(at)momjian(dot)us> 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 +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2018-08-07 21:58:22 | Re: Document the limit on the number of parameters |
| Previous Message | Bruce Momjian | 2018-08-07 17:44:55 | Re: Multivariate statistics |