mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
Harmonize function parameter names for Postgres 18.
Make sure that function declarations use names that exactly match the
corresponding names from function definitions in a few places. These
inconsistencies were all introduced during Postgres 18 development.
This commit was written with help from clang-tidy, by mechanically
applying the same rules as similar clean-up commits (the earliest such
commit was commit 035ce1fe
).
This commit is contained in:
@ -180,11 +180,11 @@ static void _gin_begin_parallel(GinBuildState *buildstate, Relation heap, Relati
|
||||
bool isconcurrent, int request);
|
||||
static void _gin_end_parallel(GinLeader *ginleader, GinBuildState *state);
|
||||
static Size _gin_parallel_estimate_shared(Relation heap, Snapshot snapshot);
|
||||
static double _gin_parallel_heapscan(GinBuildState *buildstate);
|
||||
static double _gin_parallel_merge(GinBuildState *buildstate);
|
||||
static double _gin_parallel_heapscan(GinBuildState *state);
|
||||
static double _gin_parallel_merge(GinBuildState *state);
|
||||
static void _gin_leader_participate_as_worker(GinBuildState *buildstate,
|
||||
Relation heap, Relation index);
|
||||
static void _gin_parallel_scan_and_build(GinBuildState *buildstate,
|
||||
static void _gin_parallel_scan_and_build(GinBuildState *state,
|
||||
GinBuildShared *ginshared,
|
||||
Sharedsort *sharedsort,
|
||||
Relation heap, Relation index,
|
||||
|
@ -397,7 +397,7 @@ static bool ATExecAlterConstraintInternal(List **wqueue, ATAlterConstraint *cmdc
|
||||
bool recurse, LOCKMODE lockmode);
|
||||
static bool ATExecAlterConstrEnforceability(List **wqueue, ATAlterConstraint *cmdcon,
|
||||
Relation conrel, Relation tgrel,
|
||||
const Oid fkrelid, const Oid pkrelid,
|
||||
Oid fkrelid, Oid pkrelid,
|
||||
HeapTuple contuple, LOCKMODE lockmode,
|
||||
Oid ReferencedParentDelTrigger,
|
||||
Oid ReferencedParentUpdTrigger,
|
||||
@ -415,7 +415,7 @@ static void AlterConstrTriggerDeferrability(Oid conoid, Relation tgrel, Relation
|
||||
List **otherrelids);
|
||||
static void AlterConstrEnforceabilityRecurse(List **wqueue, ATAlterConstraint *cmdcon,
|
||||
Relation conrel, Relation tgrel,
|
||||
const Oid fkrelid, const Oid pkrelid,
|
||||
Oid fkrelid, Oid pkrelid,
|
||||
HeapTuple contuple, LOCKMODE lockmode,
|
||||
Oid ReferencedParentDelTrigger,
|
||||
Oid ReferencedParentUpdTrigger,
|
||||
@ -503,7 +503,7 @@ static ObjectAddress ATExecDropNotNull(Relation rel, const char *colName, bool r
|
||||
static void set_attnotnull(List **wqueue, Relation rel, AttrNumber attnum,
|
||||
bool is_valid, bool queue_validation);
|
||||
static ObjectAddress ATExecSetNotNull(List **wqueue, Relation rel,
|
||||
char *constrname, char *colName,
|
||||
char *conName, char *colName,
|
||||
bool recurse, bool recursing,
|
||||
LOCKMODE lockmode);
|
||||
static bool NotNullImpliedByRelConstraints(Relation rel, Form_pg_attribute attr);
|
||||
@ -733,7 +733,7 @@ static ObjectAddress ATExecAttachPartitionIdx(List **wqueue, Relation parentIdx,
|
||||
static void validatePartitionedIndex(Relation partedIdx, Relation partedTbl);
|
||||
static void refuseDupeIndexAttach(Relation parentIdx, Relation partIdx,
|
||||
Relation partitionTbl);
|
||||
static void verifyPartitionIndexNotNull(IndexInfo *iinfo, Relation partIdx);
|
||||
static void verifyPartitionIndexNotNull(IndexInfo *iinfo, Relation partition);
|
||||
static List *GetParentedForeignKeyRefs(Relation partition);
|
||||
static void ATDetachCheckNoForeignKeyRefs(Relation partition);
|
||||
static char GetAttributeCompression(Oid atttypid, const char *compression);
|
||||
|
@ -191,7 +191,7 @@ static void InitPartitionPruneContext(PartitionPruneContext *context,
|
||||
PartitionKey partkey,
|
||||
PlanState *planstate,
|
||||
ExprContext *econtext);
|
||||
static void InitExecPartitionPruneContexts(PartitionPruneState *prunstate,
|
||||
static void InitExecPartitionPruneContexts(PartitionPruneState *prunestate,
|
||||
PlanState *parent_plan,
|
||||
Bitmapset *initially_valid_subplans,
|
||||
int n_total_subplans);
|
||||
|
@ -58,10 +58,10 @@ bool query_id_enabled = false;
|
||||
static JumbleState *InitJumble(void);
|
||||
static uint64 DoJumble(JumbleState *jstate, Node *node);
|
||||
static void AppendJumble(JumbleState *jstate,
|
||||
const unsigned char *item, Size size);
|
||||
const unsigned char *value, Size size);
|
||||
static void FlushPendingNulls(JumbleState *jstate);
|
||||
static void RecordConstLocation(JumbleState *jstate,
|
||||
int location, bool merged);
|
||||
int location, bool squashed);
|
||||
static void _jumbleNode(JumbleState *jstate, Node *node);
|
||||
static void _jumbleElements(JumbleState *jstate, List *elements);
|
||||
static void _jumbleA_Const(JumbleState *jstate, Node *node);
|
||||
|
@ -527,7 +527,7 @@ static inline BufferDesc *BufferAlloc(SMgrRelation smgr,
|
||||
BlockNumber blockNum,
|
||||
BufferAccessStrategy strategy,
|
||||
bool *foundPtr, IOContext io_context);
|
||||
static bool AsyncReadBuffers(ReadBuffersOperation *operation, int *nblocks);
|
||||
static bool AsyncReadBuffers(ReadBuffersOperation *operation, int *nblocks_progress);
|
||||
static void CheckReadBuffersOperation(ReadBuffersOperation *operation, bool is_complete);
|
||||
static Buffer GetVictimBuffer(BufferAccessStrategy strategy, IOContext io_context);
|
||||
static void FlushBuffer(BufferDesc *buf, SMgrRelation reln,
|
||||
|
@ -154,7 +154,7 @@ static BlockNumber _mdnblocks(SMgrRelation reln, ForkNumber forknum,
|
||||
MdfdVec *seg);
|
||||
|
||||
static PgAioResult md_readv_complete(PgAioHandle *ioh, PgAioResult prior_result, uint8 cb_data);
|
||||
static void md_readv_report(PgAioResult result, const PgAioTargetData *target_data, int elevel);
|
||||
static void md_readv_report(PgAioResult result, const PgAioTargetData *td, int elevel);
|
||||
|
||||
const PgAioHandleCallbacks aio_md_readv_cb = {
|
||||
.complete_shared = md_readv_complete,
|
||||
|
@ -127,7 +127,7 @@ static AclMode convert_tablespace_priv_string(text *priv_type_text);
|
||||
static Oid convert_type_name(text *typename);
|
||||
static AclMode convert_type_priv_string(text *priv_type_text);
|
||||
static AclMode convert_parameter_priv_string(text *priv_text);
|
||||
static AclMode convert_largeobject_priv_string(text *priv_text);
|
||||
static AclMode convert_largeobject_priv_string(text *priv_type_text);
|
||||
static AclMode convert_role_priv_string(text *priv_type_text);
|
||||
static AclResult pg_role_aclcheck(Oid role_oid, Oid roleid, AclMode mode);
|
||||
|
||||
|
@ -25,13 +25,13 @@
|
||||
extern pg_locale_t create_pg_locale_builtin(Oid collid,
|
||||
MemoryContext context);
|
||||
extern char *get_collation_actual_version_builtin(const char *collcollate);
|
||||
extern size_t strlower_builtin(char *dst, size_t dstsize, const char *src,
|
||||
extern size_t strlower_builtin(char *dest, size_t destsize, const char *src,
|
||||
ssize_t srclen, pg_locale_t locale);
|
||||
extern size_t strtitle_builtin(char *dst, size_t dstsize, const char *src,
|
||||
extern size_t strtitle_builtin(char *dest, size_t destsize, const char *src,
|
||||
ssize_t srclen, pg_locale_t locale);
|
||||
extern size_t strupper_builtin(char *dst, size_t dstsize, const char *src,
|
||||
extern size_t strupper_builtin(char *dest, size_t destsize, const char *src,
|
||||
ssize_t srclen, pg_locale_t locale);
|
||||
extern size_t strfold_builtin(char *dst, size_t dstsize, const char *src,
|
||||
extern size_t strfold_builtin(char *dest, size_t destsize, const char *src,
|
||||
ssize_t srclen, pg_locale_t locale);
|
||||
|
||||
|
||||
|
@ -48,28 +48,22 @@
|
||||
#define TEXTBUFLEN 1024
|
||||
|
||||
extern pg_locale_t create_pg_locale_icu(Oid collid, MemoryContext context);
|
||||
extern size_t strlower_icu(char *dst, size_t dstsize, const char *src,
|
||||
extern size_t strlower_icu(char *dest, size_t destsize, const char *src,
|
||||
ssize_t srclen, pg_locale_t locale);
|
||||
extern size_t strtitle_icu(char *dst, size_t dstsize, const char *src,
|
||||
extern size_t strtitle_icu(char *dest, size_t destsize, const char *src,
|
||||
ssize_t srclen, pg_locale_t locale);
|
||||
extern size_t strupper_icu(char *dst, size_t dstsize, const char *src,
|
||||
extern size_t strupper_icu(char *dest, size_t destsize, const char *src,
|
||||
ssize_t srclen, pg_locale_t locale);
|
||||
extern size_t strfold_icu(char *dst, size_t dstsize, const char *src,
|
||||
extern size_t strfold_icu(char *dest, size_t destsize, const char *src,
|
||||
ssize_t srclen, pg_locale_t locale);
|
||||
|
||||
#ifdef USE_ICU
|
||||
|
||||
extern UCollator *pg_ucol_open(const char *loc_str);
|
||||
|
||||
static int strncoll_icu(const char *arg1, ssize_t len1,
|
||||
const char *arg2, ssize_t len2,
|
||||
pg_locale_t locale);
|
||||
static size_t strnxfrm_icu(char *dest, size_t destsize,
|
||||
const char *src, ssize_t srclen,
|
||||
pg_locale_t locale);
|
||||
static size_t strnxfrm_prefix_icu(char *dest, size_t destsize,
|
||||
const char *src, ssize_t srclen,
|
||||
pg_locale_t locale);
|
||||
extern char *get_collation_actual_version_icu(const char *collcollate);
|
||||
|
||||
typedef int32_t (*ICU_Convert_Func) (UChar *dest, int32_t destCapacity,
|
||||
|
@ -184,7 +184,7 @@ static void MemoryContextStatsInternal(MemoryContext context, int level,
|
||||
static void MemoryContextStatsPrint(MemoryContext context, void *passthru,
|
||||
const char *stats_string,
|
||||
bool print_to_stderr);
|
||||
static void PublishMemoryContext(MemoryStatsEntry *memcxt_infos,
|
||||
static void PublishMemoryContext(MemoryStatsEntry *memcxt_info,
|
||||
int curr_id, MemoryContext context,
|
||||
List *path,
|
||||
MemoryContextCounters stat,
|
||||
|
Reference in New Issue
Block a user