mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Post-PG 10 beta1 pgindent run
perltidy run not included.
This commit is contained in:
@@ -364,7 +364,7 @@ bringetbitmap(IndexScanDesc scan, TIDBitmap *tbm)
|
||||
MemoryContext oldcxt;
|
||||
MemoryContext perRangeCxt;
|
||||
BrinMemTuple *dtup;
|
||||
BrinTuple *btup = NULL;
|
||||
BrinTuple *btup = NULL;
|
||||
Size btupsz = 0;
|
||||
|
||||
opaque = (BrinOpaque *) scan->opaque;
|
||||
@@ -920,13 +920,13 @@ brin_summarize_range(PG_FUNCTION_ARGS)
|
||||
Datum
|
||||
brin_desummarize_range(PG_FUNCTION_ARGS)
|
||||
{
|
||||
Oid indexoid = PG_GETARG_OID(0);
|
||||
int64 heapBlk64 = PG_GETARG_INT64(1);
|
||||
Oid indexoid = PG_GETARG_OID(0);
|
||||
int64 heapBlk64 = PG_GETARG_INT64(1);
|
||||
BlockNumber heapBlk;
|
||||
Oid heapoid;
|
||||
Relation heapRel;
|
||||
Relation indexRel;
|
||||
bool done;
|
||||
Oid heapoid;
|
||||
Relation heapRel;
|
||||
Relation indexRel;
|
||||
bool done;
|
||||
|
||||
if (heapBlk64 > MaxBlockNumber || heapBlk64 < 0)
|
||||
{
|
||||
@@ -977,7 +977,8 @@ brin_desummarize_range(PG_FUNCTION_ARGS)
|
||||
RelationGetRelationName(indexRel))));
|
||||
|
||||
/* the revmap does the hard work */
|
||||
do {
|
||||
do
|
||||
{
|
||||
done = brinRevmapDesummarizeRange(indexRel, heapBlk);
|
||||
}
|
||||
while (!done);
|
||||
|
||||
@@ -318,11 +318,11 @@ bool
|
||||
brinRevmapDesummarizeRange(Relation idxrel, BlockNumber heapBlk)
|
||||
{
|
||||
BrinRevmap *revmap;
|
||||
BlockNumber pagesPerRange;
|
||||
BlockNumber pagesPerRange;
|
||||
RevmapContents *contents;
|
||||
ItemPointerData *iptr;
|
||||
ItemPointerData invalidIptr;
|
||||
BlockNumber revmapBlk;
|
||||
ItemPointerData invalidIptr;
|
||||
BlockNumber revmapBlk;
|
||||
Buffer revmapBuf;
|
||||
Buffer regBuf;
|
||||
Page revmapPg;
|
||||
@@ -415,7 +415,7 @@ brinRevmapDesummarizeRange(Relation idxrel, BlockNumber heapBlk)
|
||||
if (RelationNeedsWAL(idxrel))
|
||||
{
|
||||
xl_brin_desummarize xlrec;
|
||||
XLogRecPtr recptr;
|
||||
XLogRecPtr recptr;
|
||||
|
||||
xlrec.pagesPerRange = revmap->rm_pagesPerRange;
|
||||
xlrec.heapBlk = heapBlk;
|
||||
|
||||
@@ -268,7 +268,7 @@ brin_xlog_desummarize_page(XLogReaderState *record)
|
||||
action = XLogReadBufferForRedo(record, 0, &buffer);
|
||||
if (action == BLK_NEEDS_REDO)
|
||||
{
|
||||
ItemPointerData iptr;
|
||||
ItemPointerData iptr;
|
||||
|
||||
ItemPointerSetInvalid(&iptr);
|
||||
brinSetHeapBlockItemptr(buffer, xlrec->pagesPerRange, xlrec->heapBlk, iptr);
|
||||
@@ -283,7 +283,7 @@ brin_xlog_desummarize_page(XLogReaderState *record)
|
||||
action = XLogReadBufferForRedo(record, 1, &buffer);
|
||||
if (action == BLK_NEEDS_REDO)
|
||||
{
|
||||
Page regPg = BufferGetPage(buffer);
|
||||
Page regPg = BufferGetPage(buffer);
|
||||
|
||||
PageIndexTupleDeleteNoCompact(regPg, xlrec->regOffset);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user