Example 43.6. A PL/pgSQL Trigger Function for Maintaining a Summary Table - Mailing list pgsql-docs

From Maxim Yablokov
Subject Example 43.6. A PL/pgSQL Trigger Function for Maintaining a Summary Table
Date
Msg-id 70f74895-8512-4b2f-8617-2ac0ebcd2e87@postgrespro.ru
Whole thread Raw
Responses Re: Example 43.6. A PL/pgSQL Trigger Function for Maintaining a Summary Table
List pgsql-docs

Hello!

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)?

--
Best regards,
Maxim Yablokov
Technical writer-translator
Postgres Professional

pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Discrepancy between the documentation and the implementation
Next
From: Daniel Gustafsson
Date:
Subject: Re: Example 43.6. A PL/pgSQL Trigger Function for Maintaining a Summary Table