mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Harmonize more parameter names in bulk.
Make sure that function declarations use names that exactly match the corresponding names from function definitions in optimizer, parser, utility, libpq, and "commands" code, as well as in remaining library code. Do the same for all code related to frontend programs (with the exception of pg_dump/pg_dumpall related code). Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Later commits will handle ecpg and pg_dump/pg_dumpall. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
This commit is contained in:
@@ -94,7 +94,7 @@ static void AlterEventTriggerOwner_internal(Relation rel,
|
||||
static void error_duplicate_filter_variable(const char *defname);
|
||||
static Datum filter_list_to_array(List *filterlist);
|
||||
static Oid insert_event_trigger_tuple(const char *trigname, const char *eventname,
|
||||
Oid evtOwner, Oid funcoid, List *tags);
|
||||
Oid evtOwner, Oid funcoid, List *taglist);
|
||||
static void validate_ddl_tags(const char *filtervar, List *taglist);
|
||||
static void validate_table_rewrite_tags(const char *filtervar, List *taglist);
|
||||
static void EventTriggerInvoke(List *fn_oid_list, EventTriggerData *trigdata);
|
||||
|
@@ -111,7 +111,7 @@ static void show_incremental_sort_info(IncrementalSortState *incrsortstate,
|
||||
static void show_hash_info(HashState *hashstate, ExplainState *es);
|
||||
static void show_memoize_info(MemoizeState *mstate, List *ancestors,
|
||||
ExplainState *es);
|
||||
static void show_hashagg_info(AggState *hashstate, ExplainState *es);
|
||||
static void show_hashagg_info(AggState *aggstate, ExplainState *es);
|
||||
static void show_tidbitmap_info(BitmapHeapScanState *planstate,
|
||||
ExplainState *es);
|
||||
static void show_instrumentation_count(const char *qlabel, int which,
|
||||
|
@@ -98,7 +98,7 @@ static Oid ReindexTable(RangeVar *relation, ReindexParams *params,
|
||||
bool isTopLevel);
|
||||
static void ReindexMultipleTables(const char *objectName,
|
||||
ReindexObjectType objectKind, ReindexParams *params);
|
||||
static void reindex_error_callback(void *args);
|
||||
static void reindex_error_callback(void *arg);
|
||||
static void ReindexPartitions(Oid relid, ReindexParams *params,
|
||||
bool isTopLevel);
|
||||
static void ReindexMultipleInternal(List *relids,
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "utils/syscache.h"
|
||||
|
||||
static void LockTableRecurse(Oid reloid, LOCKMODE lockmode, bool nowait);
|
||||
static AclResult LockTableAclCheck(Oid relid, LOCKMODE lockmode, Oid userid);
|
||||
static AclResult LockTableAclCheck(Oid reloid, LOCKMODE lockmode, Oid userid);
|
||||
static void RangeVarCallbackForLockTable(const RangeVar *rv, Oid relid,
|
||||
Oid oldrelid, void *arg);
|
||||
static void LockViewRecurse(Oid reloid, LOCKMODE lockmode, bool nowait,
|
||||
|
@@ -52,7 +52,7 @@
|
||||
static void AlterOpFamilyAdd(AlterOpFamilyStmt *stmt,
|
||||
Oid amoid, Oid opfamilyoid,
|
||||
int maxOpNumber, int maxProcNumber,
|
||||
int opclassOptsProcNumber, List *items);
|
||||
int optsProcNumber, List *items);
|
||||
static void AlterOpFamilyDrop(AlterOpFamilyStmt *stmt,
|
||||
Oid amoid, Oid opfamilyoid,
|
||||
int maxOpNumber, int maxProcNumber,
|
||||
|
@@ -285,16 +285,16 @@ RenameSchema(const char *oldname, const char *newname)
|
||||
}
|
||||
|
||||
void
|
||||
AlterSchemaOwner_oid(Oid oid, Oid newOwnerId)
|
||||
AlterSchemaOwner_oid(Oid schemaoid, Oid newOwnerId)
|
||||
{
|
||||
HeapTuple tup;
|
||||
Relation rel;
|
||||
|
||||
rel = table_open(NamespaceRelationId, RowExclusiveLock);
|
||||
|
||||
tup = SearchSysCache1(NAMESPACEOID, ObjectIdGetDatum(oid));
|
||||
tup = SearchSysCache1(NAMESPACEOID, ObjectIdGetDatum(schemaoid));
|
||||
if (!HeapTupleIsValid(tup))
|
||||
elog(ERROR, "cache lookup failed for schema %u", oid);
|
||||
elog(ERROR, "cache lookup failed for schema %u", schemaoid);
|
||||
|
||||
AlterSchemaOwner_internal(tup, rel, newOwnerId);
|
||||
|
||||
|
@@ -550,7 +550,7 @@ static ObjectAddress ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel,
|
||||
AlterTableCmd *cmd, LOCKMODE lockmode);
|
||||
static void RememberConstraintForRebuilding(Oid conoid, AlteredTableInfo *tab);
|
||||
static void RememberIndexForRebuilding(Oid indoid, AlteredTableInfo *tab);
|
||||
static void RememberStatisticsForRebuilding(Oid indoid, AlteredTableInfo *tab);
|
||||
static void RememberStatisticsForRebuilding(Oid stxoid, AlteredTableInfo *tab);
|
||||
static void ATPostAlterTypeCleanup(List **wqueue, AlteredTableInfo *tab,
|
||||
LOCKMODE lockmode);
|
||||
static void ATPostAlterTypeParse(Oid oldId, Oid oldRelId, Oid refRelId,
|
||||
@@ -610,7 +610,7 @@ static void ComputePartitionAttrs(ParseState *pstate, Relation rel, List *partPa
|
||||
List **partexprs, Oid *partopclass, Oid *partcollation, char strategy);
|
||||
static void CreateInheritance(Relation child_rel, Relation parent_rel);
|
||||
static void RemoveInheritance(Relation child_rel, Relation parent_rel,
|
||||
bool allow_detached);
|
||||
bool expect_detached);
|
||||
static ObjectAddress ATExecAttachPartition(List **wqueue, Relation rel,
|
||||
PartitionCmd *cmd,
|
||||
AlterTableUtilityContext *context);
|
||||
@@ -627,7 +627,7 @@ static ObjectAddress ATExecDetachPartition(List **wqueue, AlteredTableInfo *tab,
|
||||
static void DetachPartitionFinalize(Relation rel, Relation partRel,
|
||||
bool concurrent, Oid defaultPartOid);
|
||||
static ObjectAddress ATExecDetachPartitionFinalize(Relation rel, RangeVar *name);
|
||||
static ObjectAddress ATExecAttachPartitionIdx(List **wqueue, Relation rel,
|
||||
static ObjectAddress ATExecAttachPartitionIdx(List **wqueue, Relation parentIdx,
|
||||
RangeVar *name);
|
||||
static void validatePartitionedIndex(Relation partedIdx, Relation partedTbl);
|
||||
static void refuseDupeIndexAttach(Relation parentIdx, Relation partIdx,
|
||||
|
@@ -86,8 +86,8 @@ static bool GetTupleForTrigger(EState *estate,
|
||||
ItemPointer tid,
|
||||
LockTupleMode lockmode,
|
||||
TupleTableSlot *oldslot,
|
||||
TupleTableSlot **newSlot,
|
||||
TM_FailureData *tmfpd);
|
||||
TupleTableSlot **epqslot,
|
||||
TM_FailureData *tmfdp);
|
||||
static bool TriggerEnabled(EState *estate, ResultRelInfo *relinfo,
|
||||
Trigger *trigger, TriggerEvent event,
|
||||
Bitmapset *modifiedCols,
|
||||
@@ -101,7 +101,7 @@ static void AfterTriggerSaveEvent(EState *estate, ResultRelInfo *relinfo,
|
||||
ResultRelInfo *src_partinfo,
|
||||
ResultRelInfo *dst_partinfo,
|
||||
int event, bool row_trigger,
|
||||
TupleTableSlot *oldtup, TupleTableSlot *newtup,
|
||||
TupleTableSlot *oldslot, TupleTableSlot *newslot,
|
||||
List *recheckIndexes, Bitmapset *modifiedCols,
|
||||
TransitionCaptureState *transition_capture,
|
||||
bool is_crosspart_update);
|
||||
@@ -3871,7 +3871,7 @@ static void TransitionTableAddTuple(EState *estate,
|
||||
Tuplestorestate *tuplestore);
|
||||
static void AfterTriggerFreeQuery(AfterTriggersQueryData *qs);
|
||||
static SetConstraintState SetConstraintStateCreate(int numalloc);
|
||||
static SetConstraintState SetConstraintStateCopy(SetConstraintState state);
|
||||
static SetConstraintState SetConstraintStateCopy(SetConstraintState origstate);
|
||||
static SetConstraintState SetConstraintStateAddItem(SetConstraintState state,
|
||||
Oid tgoid, bool tgisdeferred);
|
||||
static void cancel_prior_stmt_triggers(Oid relid, CmdType cmdType, int tgevent);
|
||||
|
Reference in New Issue
Block a user