pg_ivm/sql
Yugo Nagata 8b564de029 Prohibit unreferenced CTE
When a table in a unreferenced CTE is TRUNCATEd, the contents
of the IMMV is not affected so it must not be truncated. For
confirming it at the maintenance time, we have to check if the
modified table used in a CTE is actually referenced. Although
it would possible, we just disallow to create such IMMVs for now
since such unreferenced CTE is useless unless it doesn't contain
modifying commands, that is already prohibited.

Some error messages are fixed to use "WITH query" instead of "CTE"
as same as in the PostgreSQL core code.

Also, add tests for nested CTE and multiply-referenced CTE, and
a test for nested-subquery in passing.
2023-01-27 11:40:52 +09:00
..
create_immv.sql Fix segmentation fault in incorrect view def (#39) 2022-12-15 19:03:49 +09:00
pg_ivm.sql Prohibit unreferenced CTE 2023-01-27 11:40:52 +09:00
refresh_immv.sql Improve refresh_immv behavior a bit 2022-06-23 11:33:06 +09:00