mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +03:00
pgindent run for 9.5
This commit is contained in:
@@ -566,8 +566,8 @@ nextval_internal(Oid relid)
|
||||
PreventCommandIfReadOnly("nextval()");
|
||||
|
||||
/*
|
||||
* Forbid this during parallel operation because, to make it work,
|
||||
* the cooperating backends would need to share the backend-local cached
|
||||
* Forbid this during parallel operation because, to make it work, the
|
||||
* cooperating backends would need to share the backend-local cached
|
||||
* sequence information. Currently, we don't support that.
|
||||
*/
|
||||
PreventCommandIfParallelMode("nextval()");
|
||||
@@ -702,10 +702,10 @@ nextval_internal(Oid relid)
|
||||
|
||||
/*
|
||||
* If something needs to be WAL logged, acquire an xid, so this
|
||||
* transaction's commit will trigger a WAL flush and wait for
|
||||
* syncrep. It's sufficient to ensure the toplevel transaction has an xid,
|
||||
* no need to assign xids subxacts, that'll already trigger an appropriate
|
||||
* wait. (Have to do that here, so we're outside the critical section)
|
||||
* transaction's commit will trigger a WAL flush and wait for syncrep.
|
||||
* It's sufficient to ensure the toplevel transaction has an xid, no need
|
||||
* to assign xids subxacts, that'll already trigger an appropriate wait.
|
||||
* (Have to do that here, so we're outside the critical section)
|
||||
*/
|
||||
if (logit && RelationNeedsWAL(seqrel))
|
||||
GetTopTransactionId();
|
||||
@@ -870,8 +870,8 @@ do_setval(Oid relid, int64 next, bool iscalled)
|
||||
PreventCommandIfReadOnly("setval()");
|
||||
|
||||
/*
|
||||
* Forbid this during parallel operation because, to make it work,
|
||||
* the cooperating backends would need to share the backend-local cached
|
||||
* Forbid this during parallel operation because, to make it work, the
|
||||
* cooperating backends would need to share the backend-local cached
|
||||
* sequence information. Currently, we don't support that.
|
||||
*/
|
||||
PreventCommandIfParallelMode("setval()");
|
||||
|
Reference in New Issue
Block a user