aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access')
-rw-r--r--src/backend/access/brin/README2
-rw-r--r--src/backend/access/brin/brin.c8
-rw-r--r--src/backend/access/brin/brin_tuple.c2
3 files changed, 7 insertions, 5 deletions
diff --git a/src/backend/access/brin/README b/src/backend/access/brin/README
index 2619be8db56..636d96545b2 100644
--- a/src/backend/access/brin/README
+++ b/src/backend/access/brin/README
@@ -126,7 +126,7 @@ that page range is complete and new tuples belong in a new page range that
hasn't yet been summarized. Those insertions do not create a new index
entry; instead, the page range remains unsummarized until later.
-Wehn VACUUM is run on the table, all unsummarized page ranges are
+Whenever VACUUM is run on the table, all unsummarized page ranges are
summarized. This action can also be invoked by the user via
brin_summarize_new_values(). Both these procedures scan all the
unsummarized ranges, and create a summary tuple. Again, this includes the
diff --git a/src/backend/access/brin/brin.c b/src/backend/access/brin/brin.c
index ae655497951..bd35cf6696a 100644
--- a/src/backend/access/brin/brin.c
+++ b/src/backend/access/brin/brin.c
@@ -107,9 +107,11 @@ brininsert(PG_FUNCTION_ARGS)
BrinMemTuple *dtup;
BlockNumber heapBlk;
int keyno;
- BrinTuple *tmptup PG_USED_FOR_ASSERTS_ONLY;
- BrinMemTuple *tmpdtup PG_USED_FOR_ASSERTS_ONLY;
- Size tmpsiz PG_USED_FOR_ASSERTS_ONLY;
+#ifdef USE_ASSERT_CHECKING
+ BrinTuple *tmptup;
+ BrinMemTuple *tmpdtup;
+ Size tmpsiz;
+#endif
CHECK_FOR_INTERRUPTS();
diff --git a/src/backend/access/brin/brin_tuple.c b/src/backend/access/brin/brin_tuple.c
index d895cb715cb..af649c00afc 100644
--- a/src/backend/access/brin/brin_tuple.c
+++ b/src/backend/access/brin/brin_tuple.c
@@ -95,7 +95,7 @@ brin_form_tuple(BrinDesc *brdesc, BlockNumber blkno, BrinMemTuple *tuple,
BrinTuple *rettuple;
int keyno;
int idxattno;
- uint16 phony_infomask;
+ uint16 phony_infomask = 0;
bits8 *phony_nullbitmap;
Size len,
hoff,