mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Final pgindent + perltidy run for 9.6.
This commit is contained in:
@ -4571,7 +4571,7 @@ heap_lock_tuple(Relation relation, HeapTuple tuple,
|
||||
ItemId lp;
|
||||
Page page;
|
||||
Buffer vmbuffer = InvalidBuffer;
|
||||
BlockNumber block;
|
||||
BlockNumber block;
|
||||
TransactionId xid,
|
||||
xmax;
|
||||
uint16 old_infomask,
|
||||
@ -5643,7 +5643,7 @@ static HTSU_Result
|
||||
heap_lock_updated_tuple_rec(Relation rel, ItemPointer tid, TransactionId xid,
|
||||
LockTupleMode mode)
|
||||
{
|
||||
HTSU_Result result;
|
||||
HTSU_Result result;
|
||||
ItemPointerData tupid;
|
||||
HeapTupleData mytup;
|
||||
Buffer buf;
|
||||
@ -6698,6 +6698,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
|
||||
if (tuple->t_infomask & HEAP_MOVED)
|
||||
{
|
||||
xid = HeapTupleHeaderGetXvac(tuple);
|
||||
|
||||
/*
|
||||
* For Xvac, we ignore the cutoff_xid and just always perform the
|
||||
* freeze operation. The oldest release in which such a value can
|
||||
@ -8841,9 +8842,9 @@ heap_xlog_lock(XLogReaderState *record)
|
||||
*/
|
||||
if (xlrec->flags & XLH_LOCK_ALL_FROZEN_CLEARED)
|
||||
{
|
||||
RelFileNode rnode;
|
||||
RelFileNode rnode;
|
||||
Buffer vmbuffer = InvalidBuffer;
|
||||
BlockNumber block;
|
||||
BlockNumber block;
|
||||
Relation reln;
|
||||
|
||||
XLogRecGetBlockTag(record, 0, &rnode, NULL, &block);
|
||||
@ -8914,9 +8915,9 @@ heap_xlog_lock_updated(XLogReaderState *record)
|
||||
*/
|
||||
if (xlrec->flags & XLH_LOCK_ALL_FROZEN_CLEARED)
|
||||
{
|
||||
RelFileNode rnode;
|
||||
RelFileNode rnode;
|
||||
Buffer vmbuffer = InvalidBuffer;
|
||||
BlockNumber block;
|
||||
BlockNumber block;
|
||||
Relation reln;
|
||||
|
||||
XLogRecGetBlockTag(record, 0, &rnode, NULL, &block);
|
||||
|
@ -1667,7 +1667,7 @@ toast_delete_datum(Relation rel, Datum value)
|
||||
HeapTuple toasttup;
|
||||
int num_indexes;
|
||||
int validIndex;
|
||||
SnapshotData SnapshotToast;
|
||||
SnapshotData SnapshotToast;
|
||||
|
||||
if (!VARATT_IS_EXTERNAL_ONDISK(attr))
|
||||
return;
|
||||
@ -1734,7 +1734,7 @@ toastrel_valueid_exists(Relation toastrel, Oid valueid)
|
||||
int num_indexes;
|
||||
int validIndex;
|
||||
Relation *toastidxs;
|
||||
SnapshotData SnapshotToast;
|
||||
SnapshotData SnapshotToast;
|
||||
|
||||
/* Fetch a valid index relation */
|
||||
validIndex = toast_open_indexes(toastrel,
|
||||
@ -1819,7 +1819,7 @@ toast_fetch_datum(struct varlena * attr)
|
||||
int32 chunksize;
|
||||
int num_indexes;
|
||||
int validIndex;
|
||||
SnapshotData SnapshotToast;
|
||||
SnapshotData SnapshotToast;
|
||||
|
||||
if (!VARATT_IS_EXTERNAL_ONDISK(attr))
|
||||
elog(ERROR, "toast_fetch_datum shouldn't be called for non-ondisk datums");
|
||||
@ -1998,7 +1998,7 @@ toast_fetch_datum_slice(struct varlena * attr, int32 sliceoffset, int32 length)
|
||||
int32 chcpyend;
|
||||
int num_indexes;
|
||||
int validIndex;
|
||||
SnapshotData SnapshotToast;
|
||||
SnapshotData SnapshotToast;
|
||||
|
||||
if (!VARATT_IS_EXTERNAL_ONDISK(attr))
|
||||
elog(ERROR, "toast_fetch_datum_slice shouldn't be called for non-ondisk datums");
|
||||
@ -2094,7 +2094,7 @@ toast_fetch_datum_slice(struct varlena * attr, int32 sliceoffset, int32 length)
|
||||
init_toast_snapshot(&SnapshotToast);
|
||||
nextidx = startchunk;
|
||||
toastscan = systable_beginscan_ordered(toastrel, toastidxs[validIndex],
|
||||
&SnapshotToast, nscankeys, toastkey);
|
||||
&SnapshotToast, nscankeys, toastkey);
|
||||
while ((ttup = systable_getnext_ordered(toastscan, ForwardScanDirection)) != NULL)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user