mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Initial pgindent run for v12.
This is still using the 2.0 version of pg_bsd_indent. I thought it would be good to commit this separately, so as to document the differences between 2.0 and 2.1 behavior. Discussion: https://postgr.es/m/16296.1558103386@sss.pgh.pa.us
This commit is contained in:
@ -205,8 +205,8 @@ ginRedoRecompress(Page page, ginxlogRecompressDataLeaf *data)
|
||||
while (segno < a_segno)
|
||||
{
|
||||
/*
|
||||
* Once modification is started and page tail is copied, we've
|
||||
* to copy unmodified segments.
|
||||
* Once modification is started and page tail is copied, we've to
|
||||
* copy unmodified segments.
|
||||
*/
|
||||
segsize = SizeOfGinPostingList(oldseg);
|
||||
if (tailCopy)
|
||||
@ -257,12 +257,12 @@ ginRedoRecompress(Page page, ginxlogRecompressDataLeaf *data)
|
||||
}
|
||||
|
||||
/*
|
||||
* We're about to start modification of the page. So, copy tail of the
|
||||
* page if it's not done already.
|
||||
* We're about to start modification of the page. So, copy tail of
|
||||
* the page if it's not done already.
|
||||
*/
|
||||
if (!tailCopy && segptr != segmentend)
|
||||
{
|
||||
int tailSize = segmentend - segptr;
|
||||
int tailSize = segmentend - segptr;
|
||||
|
||||
tailCopy = (Pointer) palloc(tailSize);
|
||||
memcpy(tailCopy, segptr, tailSize);
|
||||
@ -304,7 +304,7 @@ ginRedoRecompress(Page page, ginxlogRecompressDataLeaf *data)
|
||||
segptr = (Pointer) oldseg;
|
||||
if (segptr != segmentend && tailCopy)
|
||||
{
|
||||
int restSize = segmentend - segptr;
|
||||
int restSize = segmentend - segptr;
|
||||
|
||||
Assert(writePtr + restSize <= PageGetSpecialPointer(page));
|
||||
memcpy(writePtr, segptr, restSize);
|
||||
|
Reference in New Issue
Block a user