Move BRIN page type to page's last two bytes
Alvaro Herrera <alvherre@alvh.no-ip.org>
Move BRIN page type to page's last two bytes ... which is the usual convention among AMs, so that pg_filedump and similar utilities can tell apart pages of different AMs. It was also the intent of the original code, but I failed to realize that alignment considerations would move the whole thing to the previous-to-last word in the page. The new definition of the associated macro makes surrounding code a bit leaner, too. Per note from Heikki at http://www.postgresql.org/message-id/546A16EF.9070005@vmware.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pageinspect/brinfuncs.c | modified | +4 −9 |
| src/backend/access/brin/brin_pageops.c | modified | +5 −18 |
| src/backend/access/brin/brin_revmap.c | modified | +1 −1 |
| src/include/access/brin_page.h | modified | +29 −9 |
| src/include/access/gin_private.h | modified | +4 −4 |
| src/include/access/spgist_private.h | modified | +2 −0 |