Re: Example 43.6. A PL/pgSQL Trigger Function for Maintaining a Summary Table
Вложения
В списке pgsql-docs по дате отправления:
| От | Maxim Yablokov |
|---|---|
| Тема | Re: Example 43.6. A PL/pgSQL Trigger Function for Maintaining a Summary Table |
| Дата | |
| Msg-id | fe405123-9cae-4f16-81c0-4e73bec93b81@postgrespro.ru обсуждение |
| Ответ на | Re: Example 43.6. A PL/pgSQL Trigger Function for Maintaining a Summary Table (Daniel Gustafsson <daniel@yesql.se>) |
| Ответы |
Re: Example 43.6. A PL/pgSQL Trigger Function for Maintaining a Summary Table
|
| Список | pgsql-docs |
I believe that the attached patch should fix this problem. Please have a look.
On 26 Oct 2023, at 09:33, Maxim Yablokov <m.yablokov@postgrespro.ru> wrote:Example 43.6 on the page https://www.postgresql.org/docs/16/plpgsql-trigger.html has two tables called main. But it seems that the table time_dimension is not used any further, it's a bit strange for one of main tables of the example. Am I missing something, or should this example be extended (or reduced)?Interesting catch, time_dimension has been unused since introduced with commit a294726bc1d (in 2005), and the archives doesn't provide any further insights. While I don't have access to the book referred to for the example, we don't expect our readers to either so it seems to me that we could remove it from the example to avoid risk of confusion. Would you like to propose a patch for this? -- Daniel Gustafsson
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера