pg_visibility: Add pg_truncate_visibility_map function.
authorRobert Haas <[email protected]>
Fri, 17 Jun 2016 21:37:30 +0000 (17:37 -0400)
committerRobert Haas <[email protected]>
Fri, 17 Jun 2016 21:37:30 +0000 (17:37 -0400)
commit71d05a2c7b82379bb1013a0e338906349c54ed85
tree53a862320e1b58955449b7238d6f725cf1d954b4
parent54f5c5150fa05d7ad15f8406debd5a2b394885b5
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.
contrib/pg_visibility/pg_visibility--1.0--1.1.sql
contrib/pg_visibility/pg_visibility--1.1.sql
contrib/pg_visibility/pg_visibility.c
doc/src/sgml/pgvisibility.sgml
src/backend/access/rmgrdesc/smgrdesc.c
src/backend/catalog/storage.c
src/include/access/xlog_internal.h
src/include/catalog/storage_xlog.h