pg_visibility: Add pg_truncate_visibility_map function.
Robert Haas <rhaas@postgresql.org>
pg_visibility: Add pg_truncate_visibility_map function. This requires some core changes as well so that we can properly WAL-log the truncation. Specifically, it changes the format of the XLOG_SMGR_TRUNCATE WAL record, so bump XLOG_PAGE_MAGIC. Patch by me, reviewed but not fully endorsed by Andres Freund.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_visibility/pg_visibility--1.0--1.1.sql | modified | +7 −0 |
| contrib/pg_visibility/pg_visibility--1.1.sql | modified | +8 −0 |
| contrib/pg_visibility/pg_visibility.c | modified | +72 −0 |
| doc/src/sgml/pgvisibility.sgml | modified | +24 −6 |
| src/backend/access/rmgrdesc/smgrdesc.c | modified | +2 −1 |
| src/backend/catalog/storage.c | modified | +11 −5 |
| src/include/access/xlog_internal.h | modified | +1 −1 |
| src/include/catalog/storage_xlog.h | modified | +8 −0 |