pg_ivm/sql
Yugo Nagata d99aeb848e Allow TRUNCATE on base tables (#144)
When a base table is truncated, the view content will be empty if the
view definition query does not contain an aggregate without a GROUP clause.
Therefore, such views can be truncated.

Aggregate views without a GROUP clause always have one row. Therefore,
if a base table is truncated, the view will not be empty and will contain
a row with NULL value (or 0 for count()). So, in this case, we refresh the
view instead of truncating it.
2022-06-21 21:27:21 +09:00
..
create_immv.sql Add refresh_immv() function 2022-06-16 03:06:47 +09:00
pg_ivm.sql Allow TRUNCATE on base tables (#144) 2022-06-21 21:27:21 +09:00
refresh_immv.sql Add refresh_immv() function 2022-06-16 03:06:47 +09:00