Re: RETURN NULL in the sample of insert trigger on partitioned table
В списке pgsql-docs по дате отправления:
| От | Bruce Momjian |
|---|---|
| Тема | Re: RETURN NULL in the sample of insert trigger on partitioned table |
| Дата | |
| Msg-id | 20180807175742.GG7297@momjian.us обсуждение |
| Ответ на | RETURN NULL in the sample of insert trigger on partitioned table (PG Doc comments form <noreply@postgresql.org>) |
| Список | 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@momjian.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 +
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера