aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/brin/brin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/brin/brin.c')
-rw-r--r--src/backend/access/brin/brin.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/backend/access/brin/brin.c b/src/backend/access/brin/brin.c
index 76cc36c3469..ae655497951 100644
--- a/src/backend/access/brin/brin.c
+++ b/src/backend/access/brin/brin.c
@@ -247,12 +247,10 @@ brininsert(PG_FUNCTION_ARGS)
* the same page though, so downstream we must be prepared to cope
* if this turns out to not be possible after all.
*/
+ newtup = brin_form_tuple(bdesc, heapBlk, dtup, &newsz);
samepage = brin_can_do_samepage_update(buf, origsz, newsz);
-
LockBuffer(buf, BUFFER_LOCK_UNLOCK);
- newtup = brin_form_tuple(bdesc, heapBlk, dtup, &newsz);
-
/*
* Try to update the tuple. If this doesn't work for whatever
* reason, we need to restart from the top; the revmap might be
@@ -589,9 +587,10 @@ brinbuildCallback(Relation index,
while (thisblock > state->bs_currRangeStart + state->bs_pagesPerRange - 1)
{
- BRIN_elog(DEBUG2, "brinbuildCallback: completed a range: %u--%u",
- state->bs_currRangeStart,
- state->bs_currRangeStart + state->bs_pagesPerRange);
+ BRIN_elog((DEBUG2,
+ "brinbuildCallback: completed a range: %u--%u",
+ state->bs_currRangeStart,
+ state->bs_currRangeStart + state->bs_pagesPerRange));
/* create the index tuple and insert it */
form_and_insert_tuple(state);