Repository navigation
Commit b3c3728
authored
fix(truncate): include materialized views in TRUNCATE (#1751)
When MATERIALIZE VIEWS ... AS $$ ... $$ is used with WITH truncate,
the materialized views are stored in schema-view-list (because
fetch-columns is called with :table-type :view) rather than
schema-table-list. truncate-tables only iterated over table-list,
so the TRUNCATE statement was never generated for any matview — the
summary showed 'Truncate: 0' even when truncate was requested.
The COPY phase already does the right thing: optimize-table-copy-ordering
uses (nconc table-list view-list). Align truncate-tables to match.
Closes #1591.1 parent 056c3fb commit b3c3728
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| |||
0 commit comments