mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 14:32:25 +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:
@@ -29,7 +29,7 @@ extern Oid AlterObjectNamespace_oid(Oid classId, Oid objid, Oid nspOid,
|
||||
ObjectAddresses *objsMoved);
|
||||
|
||||
extern ObjectAddress ExecAlterOwnerStmt(AlterOwnerStmt *stmt);
|
||||
extern void AlterObjectOwner_internal(Relation catalog, Oid objectId,
|
||||
extern void AlterObjectOwner_internal(Relation rel, Oid objectId,
|
||||
Oid new_ownerId);
|
||||
|
||||
#endif /* ALTER_H */
|
||||
|
@@ -18,6 +18,6 @@
|
||||
#include "catalog/objectaddress.h"
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
extern ObjectAddress CreateConversionCommand(CreateConversionStmt *parsetree);
|
||||
extern ObjectAddress CreateConversionCommand(CreateConversionStmt *stmt);
|
||||
|
||||
#endif /* CONVERSIONCMDS_H */
|
||||
|
@@ -26,7 +26,7 @@ extern void SetMatViewPopulatedState(Relation relation, bool newstate);
|
||||
extern ObjectAddress ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
|
||||
ParamListInfo params, QueryCompletion *qc);
|
||||
|
||||
extern DestReceiver *CreateTransientRelDestReceiver(Oid oid);
|
||||
extern DestReceiver *CreateTransientRelDestReceiver(Oid transientoid);
|
||||
|
||||
extern bool MatViewIncrementalMaintenanceIsEnabled(void);
|
||||
|
||||
|
@@ -23,7 +23,7 @@ extern void RelationBuildRowSecurity(Relation relation);
|
||||
|
||||
extern void RemovePolicyById(Oid policy_id);
|
||||
|
||||
extern bool RemoveRoleFromObjectPolicy(Oid roleid, Oid classid, Oid objid);
|
||||
extern bool RemoveRoleFromObjectPolicy(Oid roleid, Oid classid, Oid policy_id);
|
||||
|
||||
extern ObjectAddress CreatePolicy(CreatePolicyStmt *stmt);
|
||||
extern ObjectAddress AlterPolicy(AlterPolicyStmt *stmt);
|
||||
|
@@ -29,7 +29,7 @@ extern void RemovePublicationRelById(Oid proid);
|
||||
extern void RemovePublicationSchemaById(Oid psoid);
|
||||
|
||||
extern ObjectAddress AlterPublicationOwner(const char *name, Oid newOwnerId);
|
||||
extern void AlterPublicationOwner_oid(Oid pubid, Oid newOwnerId);
|
||||
extern void AlterPublicationOwner_oid(Oid subid, Oid newOwnerId);
|
||||
extern void InvalidatePublicationRels(List *relids);
|
||||
extern bool pub_rf_contains_invalid_column(Oid pubid, Relation relation,
|
||||
List *ancestors, bool pubviaroot);
|
||||
|
@@ -18,12 +18,12 @@
|
||||
#include "catalog/objectaddress.h"
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
extern Oid CreateSchemaCommand(CreateSchemaStmt *parsetree,
|
||||
extern Oid CreateSchemaCommand(CreateSchemaStmt *stmt,
|
||||
const char *queryString,
|
||||
int stmt_location, int stmt_len);
|
||||
|
||||
extern ObjectAddress RenameSchema(const char *oldname, const char *newname);
|
||||
extern ObjectAddress AlterSchemaOwner(const char *name, Oid newOwnerId);
|
||||
extern void AlterSchemaOwner_oid(Oid schemaOid, Oid newOwnerId);
|
||||
extern void AlterSchemaOwner_oid(Oid schemaoid, Oid newOwnerId);
|
||||
|
||||
#endif /* SCHEMACMDS_H */
|
||||
|
@@ -28,7 +28,7 @@ extern ObjectAddress ExecSecLabelStmt(SecLabelStmt *stmt);
|
||||
|
||||
typedef void (*check_object_relabel_type) (const ObjectAddress *object,
|
||||
const char *seclabel);
|
||||
extern void register_label_provider(const char *provider,
|
||||
extern void register_label_provider(const char *provider_name,
|
||||
check_object_relabel_type hook);
|
||||
|
||||
#endif /* SECLABEL_H */
|
||||
|
@@ -55,16 +55,16 @@ extern int64 nextval_internal(Oid relid, bool check_permissions);
|
||||
extern Datum nextval(PG_FUNCTION_ARGS);
|
||||
extern List *sequence_options(Oid relid);
|
||||
|
||||
extern ObjectAddress DefineSequence(ParseState *pstate, CreateSeqStmt *stmt);
|
||||
extern ObjectAddress DefineSequence(ParseState *pstate, CreateSeqStmt *seq);
|
||||
extern ObjectAddress AlterSequence(ParseState *pstate, AlterSeqStmt *stmt);
|
||||
extern void SequenceChangePersistence(Oid relid, char newrelpersistence);
|
||||
extern void DeleteSequenceTuple(Oid relid);
|
||||
extern void ResetSequence(Oid seq_relid);
|
||||
extern void ResetSequenceCaches(void);
|
||||
|
||||
extern void seq_redo(XLogReaderState *rptr);
|
||||
extern void seq_desc(StringInfo buf, XLogReaderState *rptr);
|
||||
extern void seq_redo(XLogReaderState *record);
|
||||
extern void seq_desc(StringInfo buf, XLogReaderState *record);
|
||||
extern const char *seq_identify(uint8 info);
|
||||
extern void seq_mask(char *pagedata, BlockNumber blkno);
|
||||
extern void seq_mask(char *page, BlockNumber blkno);
|
||||
|
||||
#endif /* SEQUENCE_H */
|
||||
|
@@ -66,7 +66,7 @@ extern void SetRelationHasSubclass(Oid relationId, bool relhassubclass);
|
||||
|
||||
extern bool CheckRelationTableSpaceMove(Relation rel, Oid newTableSpaceId);
|
||||
extern void SetRelationTableSpace(Relation rel, Oid newTableSpaceId,
|
||||
RelFileNumber newRelFileNumber);
|
||||
RelFileNumber newRelFilenumber);
|
||||
|
||||
extern ObjectAddress renameatt(RenameStmt *stmt);
|
||||
|
||||
|
@@ -62,8 +62,8 @@ extern char *get_tablespace_name(Oid spc_oid);
|
||||
extern bool directory_is_empty(const char *path);
|
||||
extern void remove_tablespace_symlink(const char *linkloc);
|
||||
|
||||
extern void tblspc_redo(XLogReaderState *rptr);
|
||||
extern void tblspc_desc(StringInfo buf, XLogReaderState *rptr);
|
||||
extern void tblspc_redo(XLogReaderState *record);
|
||||
extern void tblspc_desc(StringInfo buf, XLogReaderState *record);
|
||||
extern const char *tblspc_identify(uint8 info);
|
||||
|
||||
#endif /* TABLESPACE_H */
|
||||
|
@@ -166,7 +166,7 @@ extern void TriggerSetParentTrigger(Relation trigRel,
|
||||
Oid parentTrigId,
|
||||
Oid childTableId);
|
||||
extern void RemoveTriggerById(Oid trigOid);
|
||||
extern Oid get_trigger_oid(Oid relid, const char *name, bool missing_ok);
|
||||
extern Oid get_trigger_oid(Oid relid, const char *trigname, bool missing_ok);
|
||||
|
||||
extern ObjectAddress renametrig(RenameStmt *stmt);
|
||||
|
||||
@@ -231,22 +231,22 @@ extern bool ExecBRUpdateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TupleTableSlot *slot,
|
||||
TM_FailureData *tmfdp);
|
||||
TupleTableSlot *newslot,
|
||||
TM_FailureData *tmfd);
|
||||
extern void ExecARUpdateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
ResultRelInfo *src_partinfo,
|
||||
ResultRelInfo *dst_partinfo,
|
||||
ItemPointer tupleid,
|
||||
HeapTuple fdw_trigtuple,
|
||||
TupleTableSlot *slot,
|
||||
TupleTableSlot *newslot,
|
||||
List *recheckIndexes,
|
||||
TransitionCaptureState *transition_capture,
|
||||
bool is_crosspart_update);
|
||||
extern bool ExecIRUpdateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo,
|
||||
HeapTuple trigtuple,
|
||||
TupleTableSlot *slot);
|
||||
TupleTableSlot *newslot);
|
||||
extern void ExecBSTruncateTriggers(EState *estate,
|
||||
ResultRelInfo *relinfo);
|
||||
extern void ExecASTruncateTriggers(EState *estate,
|
||||
@@ -267,9 +267,9 @@ extern bool AfterTriggerPendingOnRel(Oid relid);
|
||||
* in utils/adt/ri_triggers.c
|
||||
*/
|
||||
extern bool RI_FKey_pk_upd_check_required(Trigger *trigger, Relation pk_rel,
|
||||
TupleTableSlot *old_slot, TupleTableSlot *new_slot);
|
||||
TupleTableSlot *oldslot, TupleTableSlot *newslot);
|
||||
extern bool RI_FKey_fk_upd_check_required(Trigger *trigger, Relation fk_rel,
|
||||
TupleTableSlot *old_slot, TupleTableSlot *new_slot);
|
||||
TupleTableSlot *oldslot, TupleTableSlot *newslot);
|
||||
extern bool RI_Initial_Check(Trigger *trigger,
|
||||
Relation fk_rel, Relation pk_rel);
|
||||
extern void RI_PartitionRemove_Check(Trigger *trigger, Relation fk_rel,
|
||||
|
@@ -34,7 +34,7 @@ extern Oid AssignTypeMultirangeArrayOid(void);
|
||||
|
||||
extern ObjectAddress AlterDomainDefault(List *names, Node *defaultRaw);
|
||||
extern ObjectAddress AlterDomainNotNull(List *names, bool notNull);
|
||||
extern ObjectAddress AlterDomainAddConstraint(List *names, Node *constr,
|
||||
extern ObjectAddress AlterDomainAddConstraint(List *names, Node *newConstraint,
|
||||
ObjectAddress *constrAddr);
|
||||
extern ObjectAddress AlterDomainValidateConstraint(List *names, const char *constrName);
|
||||
extern ObjectAddress AlterDomainDropConstraint(List *names, const char *constrName,
|
||||
|
Reference in New Issue
Block a user