summaryrefslogtreecommitdiff
path: root/src/backend/access/brin/brin_xlog.c
diff options
context:
space:
mode:
authorAlvaro Herrera2015-07-20 10:16:40 +0000
committerAlvaro Herrera2015-07-20 10:16:40 +0000
commit8d9073692430a222939e7f2e436c80f0c271f116 (patch)
tree785c30230da7c5f5f0840badfe334e4f853ae8ce /src/backend/access/brin/brin_xlog.c
parentb7ca57ac0e80b8b511780ef1f19fa2124c901efb (diff)
Improve BRIN documentation somewhat
This removes some info about support procedures being used, which was obsoleted by commit db5f98ab4f, as well as add some more documentation on how to create new opclasses using the Minmax infrastructure. (Hopefully we can get something similar for Inclusion as well.) In passing, fix some obsolete mentions of "mmtuples" in source code comments. Backpatch to 9.5, where BRIN was introduced.
Diffstat (limited to 'src/backend/access/brin/brin_xlog.c')
-rw-r--r--src/backend/access/brin/brin_xlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/brin/brin_xlog.c b/src/backend/access/brin/brin_xlog.c
index 09001552920..760f0daf024 100644
--- a/src/backend/access/brin/brin_xlog.c
+++ b/src/backend/access/brin/brin_xlog.c
@@ -180,11 +180,11 @@ brin_xlog_samepage_update(XLogReaderState *record)
if (action == BLK_NEEDS_REDO)
{
Size tuplen;
- BrinTuple *mmtuple;
+ BrinTuple *brintuple;
Page page;
OffsetNumber offnum;
- mmtuple = (BrinTuple *) XLogRecGetBlockData(record, 0, &tuplen);
+ brintuple = (BrinTuple *) XLogRecGetBlockData(record, 0, &tuplen);
page = (Page) BufferGetPage(buffer);
@@ -193,7 +193,7 @@ brin_xlog_samepage_update(XLogReaderState *record)
elog(PANIC, "brin_xlog_samepage_update: invalid max offset number");
PageIndexDeleteNoCompact(page, &offnum, 1);
- offnum = PageAddItem(page, (Item) mmtuple, tuplen, offnum, true, false);
+ offnum = PageAddItem(page, (Item) brintuple, tuplen, offnum, true, false);
if (offnum == InvalidOffsetNumber)
elog(PANIC, "brin_xlog_samepage_update: failed to add tuple");