mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08:00
Final pgindent run with old pg_bsd_indent (version 1.3).
This is just to have a clean basis for comparison with the results of the new version (which will indeed end up reverting some of these changes...) Discussion: https://postgr.es/m/E1dAmxK-0006EE-1r@gemulon.postgresql.org Discussion: https://postgr.es/m/30527.1495162840@sss.pgh.pa.us
This commit is contained in:
parent
bcbf392ec8
commit
9ef2dbefc7
@ -1849,7 +1849,7 @@ get_object_address_defacl(List *object, bool missing_ok)
|
|||||||
default:
|
default:
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||||
errmsg("unrecognized default ACL object type \"%c\"", objtype),
|
errmsg("unrecognized default ACL object type \"%c\"", objtype),
|
||||||
errhint("Valid object types are \"%c\", \"%c\", \"%c\", \"%c\", \"%c\".",
|
errhint("Valid object types are \"%c\", \"%c\", \"%c\", \"%c\", \"%c\".",
|
||||||
DEFACLOBJ_RELATION,
|
DEFACLOBJ_RELATION,
|
||||||
DEFACLOBJ_SEQUENCE,
|
DEFACLOBJ_SEQUENCE,
|
||||||
|
@ -2576,7 +2576,7 @@ create_indexscan_plan(PlannerInfo *root,
|
|||||||
if (is_redundant_derived_clause(rinfo, indexquals))
|
if (is_redundant_derived_clause(rinfo, indexquals))
|
||||||
continue; /* derived from same EquivalenceClass */
|
continue; /* derived from same EquivalenceClass */
|
||||||
if (!contain_mutable_functions((Node *) rinfo->clause) &&
|
if (!contain_mutable_functions((Node *) rinfo->clause) &&
|
||||||
predicate_implied_by(list_make1(rinfo->clause), indexquals, false))
|
predicate_implied_by(list_make1(rinfo->clause), indexquals, false))
|
||||||
continue; /* provably implied by indexquals */
|
continue; /* provably implied by indexquals */
|
||||||
qpqual = lappend(qpqual, rinfo);
|
qpqual = lappend(qpqual, rinfo);
|
||||||
}
|
}
|
||||||
|
@ -431,8 +431,8 @@ DefineQueryRewrite(char *rulename,
|
|||||||
if (event_relation->rd_rel->relispartition)
|
if (event_relation->rd_rel->relispartition)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||||
errmsg("could not convert partition \"%s\" to a view",
|
errmsg("could not convert partition \"%s\" to a view",
|
||||||
RelationGetRelationName(event_relation))));
|
RelationGetRelationName(event_relation))));
|
||||||
|
|
||||||
snapshot = RegisterSnapshot(GetLatestSnapshot());
|
snapshot = RegisterSnapshot(GetLatestSnapshot());
|
||||||
scanDesc = heap_beginscan(event_relation, snapshot, 0, NULL);
|
scanDesc = heap_beginscan(event_relation, snapshot, 0, NULL);
|
||||||
|
@ -1754,8 +1754,8 @@ GetSerializableTransactionSnapshotInt(Snapshot snapshot,
|
|||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||||
errmsg("could not import the requested snapshot"),
|
errmsg("could not import the requested snapshot"),
|
||||||
errdetail("The source process with pid %d is not running anymore.",
|
errdetail("The source process with pid %d is not running anymore.",
|
||||||
sourcepid)));
|
sourcepid)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -216,8 +216,8 @@ static Snapshot FirstXactSnapshot = NULL;
|
|||||||
/* Structure holding info about exported snapshot. */
|
/* Structure holding info about exported snapshot. */
|
||||||
typedef struct ExportedSnapshot
|
typedef struct ExportedSnapshot
|
||||||
{
|
{
|
||||||
char *snapfile;
|
char *snapfile;
|
||||||
Snapshot snapshot;
|
Snapshot snapshot;
|
||||||
} ExportedSnapshot;
|
} ExportedSnapshot;
|
||||||
|
|
||||||
/* Current xact's exported snapshots (a list of ExportedSnapshot structs) */
|
/* Current xact's exported snapshots (a list of ExportedSnapshot structs) */
|
||||||
@ -626,8 +626,8 @@ SetTransactionSnapshot(Snapshot sourcesnap, VirtualTransactionId *sourcevxid,
|
|||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
|
||||||
errmsg("could not import the requested snapshot"),
|
errmsg("could not import the requested snapshot"),
|
||||||
errdetail("The source process with pid %d is not running anymore.",
|
errdetail("The source process with pid %d is not running anymore.",
|
||||||
sourcepid)));
|
sourcepid)));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* In transaction-snapshot mode, the first snapshot must live until end of
|
* In transaction-snapshot mode, the first snapshot must live until end of
|
||||||
@ -1096,7 +1096,7 @@ AtEOXact_Snapshot(bool isCommit, bool resetXmin)
|
|||||||
*/
|
*/
|
||||||
foreach(lc, exportedSnapshots)
|
foreach(lc, exportedSnapshots)
|
||||||
{
|
{
|
||||||
ExportedSnapshot *esnap = (ExportedSnapshot *) lfirst(lc);
|
ExportedSnapshot *esnap = (ExportedSnapshot *) lfirst(lc);
|
||||||
|
|
||||||
if (unlink(esnap->snapfile))
|
if (unlink(esnap->snapfile))
|
||||||
elog(WARNING, "could not unlink file \"%s\": %m",
|
elog(WARNING, "could not unlink file \"%s\": %m",
|
||||||
@ -1212,7 +1212,7 @@ ExportSnapshot(Snapshot snapshot)
|
|||||||
* inside the transaction from 1.
|
* inside the transaction from 1.
|
||||||
*/
|
*/
|
||||||
snprintf(path, sizeof(path), SNAPSHOT_EXPORT_DIR "/%08X-%08X-%d",
|
snprintf(path, sizeof(path), SNAPSHOT_EXPORT_DIR "/%08X-%08X-%d",
|
||||||
MyProc->backendId, MyProc->lxid, list_length(exportedSnapshots) + 1);
|
MyProc->backendId, MyProc->lxid, list_length(exportedSnapshots) + 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy the snapshot into TopTransactionContext, add it to the
|
* Copy the snapshot into TopTransactionContext, add it to the
|
||||||
@ -1260,7 +1260,7 @@ ExportSnapshot(Snapshot snapshot)
|
|||||||
* snapshot.h.)
|
* snapshot.h.)
|
||||||
*/
|
*/
|
||||||
addTopXid = (TransactionIdIsValid(topXid) &&
|
addTopXid = (TransactionIdIsValid(topXid) &&
|
||||||
TransactionIdPrecedes(topXid, snapshot->xmax)) ? 1 : 0;
|
TransactionIdPrecedes(topXid, snapshot->xmax)) ? 1 : 0;
|
||||||
appendStringInfo(&buf, "xcnt:%d\n", snapshot->xcnt + addTopXid);
|
appendStringInfo(&buf, "xcnt:%d\n", snapshot->xcnt + addTopXid);
|
||||||
for (i = 0; i < snapshot->xcnt; i++)
|
for (i = 0; i < snapshot->xcnt; i++)
|
||||||
appendStringInfo(&buf, "xip:%u\n", snapshot->xip[i]);
|
appendStringInfo(&buf, "xip:%u\n", snapshot->xip[i]);
|
||||||
|
@ -177,10 +177,10 @@ void
|
|||||||
issue_warnings_and_set_wal_level(void)
|
issue_warnings_and_set_wal_level(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We unconditionally start/stop the new server because pg_resetwal -o
|
* We unconditionally start/stop the new server because pg_resetwal -o set
|
||||||
* set wal_level to 'minimum'. If the user is upgrading standby
|
* wal_level to 'minimum'. If the user is upgrading standby servers using
|
||||||
* servers using the rsync instructions, they will need pg_upgrade
|
* the rsync instructions, they will need pg_upgrade to write its final
|
||||||
* to write its final WAL record showing wal_level as 'replica'.
|
* WAL record showing wal_level as 'replica'.
|
||||||
*/
|
*/
|
||||||
start_postmaster(&new_cluster, true);
|
start_postmaster(&new_cluster, true);
|
||||||
|
|
||||||
|
@ -2538,12 +2538,12 @@ describeOneTableDetails(const char *schemaname,
|
|||||||
printfPQExpBuffer(&buf,
|
printfPQExpBuffer(&buf,
|
||||||
"SELECT pubname\n"
|
"SELECT pubname\n"
|
||||||
"FROM pg_catalog.pg_publication p\n"
|
"FROM pg_catalog.pg_publication p\n"
|
||||||
"JOIN pg_catalog.pg_publication_rel pr ON p.oid = pr.prpubid\n"
|
"JOIN pg_catalog.pg_publication_rel pr ON p.oid = pr.prpubid\n"
|
||||||
"WHERE pr.prrelid = '%s'\n"
|
"WHERE pr.prrelid = '%s'\n"
|
||||||
"UNION ALL\n"
|
"UNION ALL\n"
|
||||||
"SELECT pubname\n"
|
"SELECT pubname\n"
|
||||||
"FROM pg_catalog.pg_publication p\n"
|
"FROM pg_catalog.pg_publication p\n"
|
||||||
"WHERE p.puballtables AND pg_relation_is_publishable('%s')\n"
|
"WHERE p.puballtables AND pg_relation_is_publishable('%s')\n"
|
||||||
"ORDER BY 1;",
|
"ORDER BY 1;",
|
||||||
oid, oid);
|
oid, oid);
|
||||||
|
|
||||||
|
@ -5436,7 +5436,7 @@ DESCR("get progress for all replication origins");
|
|||||||
/* publications */
|
/* publications */
|
||||||
DATA(insert OID = 6119 ( pg_get_publication_tables PGNSP PGUID 12 1 1000 0 0 f f f f t t s s 1 0 26 "25" "{25,26}" "{i,o}" "{pubname,relid}" _null_ _null_ pg_get_publication_tables _null_ _null_ _null_ ));
|
DATA(insert OID = 6119 ( pg_get_publication_tables PGNSP PGUID 12 1 1000 0 0 f f f f t t s s 1 0 26 "25" "{25,26}" "{i,o}" "{pubname,relid}" _null_ _null_ pg_get_publication_tables _null_ _null_ _null_ ));
|
||||||
DESCR("get OIDs of tables in a publication");
|
DESCR("get OIDs of tables in a publication");
|
||||||
DATA(insert OID = 6121 ( pg_relation_is_publishable PGNSP PGUID 12 1 0 0 0 f f f f t f s s 1 0 16 "2205" _null_ _null_ _null_ _null_ _null_ pg_relation_is_publishable _null_ _null_ _null_ ));
|
DATA(insert OID = 6121 ( pg_relation_is_publishable PGNSP PGUID 12 1 0 0 0 f f f f t f s s 1 0 16 "2205" _null_ _null_ _null_ _null_ _null_ pg_relation_is_publishable _null_ _null_ _null_ ));
|
||||||
DESCR("returns whether a relation can be part of a publication");
|
DESCR("returns whether a relation can be part of a publication");
|
||||||
|
|
||||||
/* rls */
|
/* rls */
|
||||||
|
@ -1013,11 +1013,11 @@ typedef struct RangeTblEntry
|
|||||||
*
|
*
|
||||||
* We need these for CTE RTEs so that the types of self-referential
|
* We need these for CTE RTEs so that the types of self-referential
|
||||||
* columns are well-defined. For VALUES RTEs, storing these explicitly
|
* columns are well-defined. For VALUES RTEs, storing these explicitly
|
||||||
* saves having to re-determine the info by scanning the values_lists.
|
* saves having to re-determine the info by scanning the values_lists. For
|
||||||
* For ENRs, we store the types explicitly here (we could get the
|
* ENRs, we store the types explicitly here (we could get the information
|
||||||
* information from the catalogs if 'relid' was supplied, but we'd still
|
* from the catalogs if 'relid' was supplied, but we'd still need these
|
||||||
* need these for TupleDesc-based ENRs, so we might as well always store
|
* for TupleDesc-based ENRs, so we might as well always store the type
|
||||||
* the type info here).
|
* info here).
|
||||||
*/
|
*/
|
||||||
List *coltypes; /* OID list of column type OIDs */
|
List *coltypes; /* OID list of column type OIDs */
|
||||||
List *coltypmods; /* integer list of column typmods */
|
List *coltypmods; /* integer list of column typmods */
|
||||||
|
@ -214,9 +214,9 @@ typedef struct ReorderBufferTXN
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Has this transaction been spilled to disk? It's not always possible to
|
* Has this transaction been spilled to disk? It's not always possible to
|
||||||
* deduce that fact by comparing nentries with nentries_mem, because
|
* deduce that fact by comparing nentries with nentries_mem, because e.g.
|
||||||
* e.g. subtransactions of a large transaction might get serialized
|
* subtransactions of a large transaction might get serialized together
|
||||||
* together with the parent - if they're restored to memory they'd have
|
* with the parent - if they're restored to memory they'd have
|
||||||
* nentries_mem == nentries.
|
* nentries_mem == nentries.
|
||||||
*/
|
*/
|
||||||
bool serialized;
|
bool serialized;
|
||||||
|
@ -590,6 +590,7 @@ ExplainFormat
|
|||||||
ExplainOneQuery_hook_type
|
ExplainOneQuery_hook_type
|
||||||
ExplainState
|
ExplainState
|
||||||
ExplainStmt
|
ExplainStmt
|
||||||
|
ExportedSnapshot
|
||||||
Expr
|
Expr
|
||||||
ExprContext
|
ExprContext
|
||||||
ExprContextCallbackFunction
|
ExprContextCallbackFunction
|
||||||
|
Loading…
Reference in New Issue
Block a user