mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Harmonize function parameter names for Postgres 17.
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 17 development.
pg_bsd_indent still has a couple of similar inconsistencies, which I
(pgeoghegan) have left untouched for now.
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:
@ -229,11 +229,11 @@ static void _brin_begin_parallel(BrinBuildState *buildstate, Relation heap, Rela
|
||||
bool isconcurrent, int request);
|
||||
static void _brin_end_parallel(BrinLeader *brinleader, BrinBuildState *state);
|
||||
static Size _brin_parallel_estimate_shared(Relation heap, Snapshot snapshot);
|
||||
static double _brin_parallel_heapscan(BrinBuildState *buildstate);
|
||||
static double _brin_parallel_merge(BrinBuildState *buildstate);
|
||||
static double _brin_parallel_heapscan(BrinBuildState *state);
|
||||
static double _brin_parallel_merge(BrinBuildState *state);
|
||||
static void _brin_leader_participate_as_worker(BrinBuildState *buildstate,
|
||||
Relation heap, Relation index);
|
||||
static void _brin_parallel_scan_and_build(BrinBuildState *buildstate,
|
||||
static void _brin_parallel_scan_and_build(BrinBuildState *state,
|
||||
BrinShared *brinshared,
|
||||
Sharedsort *sharedsort,
|
||||
Relation heap, Relation index,
|
||||
|
@ -246,7 +246,7 @@ static void lazy_vacuum(LVRelState *vacrel);
|
||||
static bool lazy_vacuum_all_indexes(LVRelState *vacrel);
|
||||
static void lazy_vacuum_heap_rel(LVRelState *vacrel);
|
||||
static void lazy_vacuum_heap_page(LVRelState *vacrel, BlockNumber blkno,
|
||||
Buffer buffer, OffsetNumber *offsets,
|
||||
Buffer buffer, OffsetNumber *deadoffsets,
|
||||
int num_offsets, Buffer vmbuffer);
|
||||
static bool lazy_check_wraparound_failsafe(LVRelState *vacrel);
|
||||
static void lazy_cleanup_all_indexes(LVRelState *vacrel);
|
||||
|
@ -141,7 +141,7 @@ static void manifest_process_wal_range(JsonManifestParseContext *context,
|
||||
TimeLineID tli,
|
||||
XLogRecPtr start_lsn,
|
||||
XLogRecPtr end_lsn);
|
||||
static void manifest_report_error(JsonManifestParseContext *ib,
|
||||
static void manifest_report_error(JsonManifestParseContext *context,
|
||||
const char *fmt,...)
|
||||
pg_attribute_printf(2, 3) pg_attribute_noreturn();
|
||||
static int compare_block_numbers(const void *a, const void *b);
|
||||
|
@ -34,7 +34,7 @@ typedef struct bbsink_zstd
|
||||
|
||||
static void bbsink_zstd_begin_backup(bbsink *sink);
|
||||
static void bbsink_zstd_begin_archive(bbsink *sink, const char *archive_name);
|
||||
static void bbsink_zstd_archive_contents(bbsink *sink, size_t avail_in);
|
||||
static void bbsink_zstd_archive_contents(bbsink *sink, size_t len);
|
||||
static void bbsink_zstd_manifest_contents(bbsink *sink, size_t len);
|
||||
static void bbsink_zstd_end_archive(bbsink *sink);
|
||||
static void bbsink_zstd_cleanup(bbsink *sink);
|
||||
|
@ -589,7 +589,7 @@ static ObjectAddress ATExecClusterOn(Relation rel, const char *indexName,
|
||||
LOCKMODE lockmode);
|
||||
static void ATExecDropCluster(Relation rel, LOCKMODE lockmode);
|
||||
static void ATPrepSetAccessMethod(AlteredTableInfo *tab, Relation rel, const char *amname);
|
||||
static void ATExecSetAccessMethodNoStorage(Relation rel, Oid newAccessMethod);
|
||||
static void ATExecSetAccessMethodNoStorage(Relation rel, Oid newAccessMethodId);
|
||||
static bool ATPrepChangePersistence(Relation rel, bool toLogged);
|
||||
static void ATPrepSetTableSpace(AlteredTableInfo *tab, Relation rel,
|
||||
const char *tablespacename, LOCKMODE lockmode);
|
||||
|
@ -45,7 +45,7 @@ static void try_partitionwise_join(PlannerInfo *root, RelOptInfo *rel1,
|
||||
static SpecialJoinInfo *build_child_join_sjinfo(PlannerInfo *root,
|
||||
SpecialJoinInfo *parent_sjinfo,
|
||||
Relids left_relids, Relids right_relids);
|
||||
static void free_child_join_sjinfo(SpecialJoinInfo *child_sjinfo);
|
||||
static void free_child_join_sjinfo(SpecialJoinInfo *sjinfo);
|
||||
static void compute_partition_bounds(PlannerInfo *root, RelOptInfo *rel1,
|
||||
RelOptInfo *rel2, RelOptInfo *joinrel,
|
||||
SpecialJoinInfo *parent_sjinfo,
|
||||
|
@ -88,11 +88,11 @@ static Node *transformJsonArrayQueryConstructor(ParseState *pstate,
|
||||
static Node *transformJsonObjectAgg(ParseState *pstate, JsonObjectAgg *agg);
|
||||
static Node *transformJsonArrayAgg(ParseState *pstate, JsonArrayAgg *agg);
|
||||
static Node *transformJsonIsPredicate(ParseState *pstate, JsonIsPredicate *pred);
|
||||
static Node *transformJsonParseExpr(ParseState *pstate, JsonParseExpr *expr);
|
||||
static Node *transformJsonScalarExpr(ParseState *pstate, JsonScalarExpr *expr);
|
||||
static Node *transformJsonParseExpr(ParseState *pstate, JsonParseExpr *jsexpr);
|
||||
static Node *transformJsonScalarExpr(ParseState *pstate, JsonScalarExpr *jsexpr);
|
||||
static Node *transformJsonSerializeExpr(ParseState *pstate,
|
||||
JsonSerializeExpr *expr);
|
||||
static Node *transformJsonFuncExpr(ParseState *pstate, JsonFuncExpr *p);
|
||||
static Node *transformJsonFuncExpr(ParseState *pstate, JsonFuncExpr *func);
|
||||
static void transformJsonPassingArgs(ParseState *pstate, const char *constructName,
|
||||
JsonFormatType format, List *args,
|
||||
List **passing_values, List **passing_names);
|
||||
|
@ -59,7 +59,7 @@ static void libpqrcv_get_senderinfo(WalReceiverConn *conn,
|
||||
char **sender_host, int *sender_port);
|
||||
static char *libpqrcv_identify_system(WalReceiverConn *conn,
|
||||
TimeLineID *primary_tli);
|
||||
static char *libpqrcv_get_dbname_from_conninfo(const char *conninfo);
|
||||
static char *libpqrcv_get_dbname_from_conninfo(const char *connInfo);
|
||||
static int libpqrcv_server_version(WalReceiverConn *conn);
|
||||
static void libpqrcv_readtimelinehistoryfile(WalReceiverConn *conn,
|
||||
TimeLineID tli, char **filename,
|
||||
|
@ -318,7 +318,7 @@ static void getJsonPathVariable(JsonPathExecContext *cxt,
|
||||
JsonPathItem *variable, JsonbValue *value);
|
||||
static int countVariablesFromJsonb(void *varsJsonb);
|
||||
static JsonbValue *getJsonPathVariableFromJsonb(void *varsJsonb, char *varName,
|
||||
int varNameLen,
|
||||
int varNameLength,
|
||||
JsonbValue *baseObject,
|
||||
int *baseObjectId);
|
||||
static int JsonbArraySize(JsonbValue *jb);
|
||||
@ -342,7 +342,6 @@ static void JsonValueListInitIterator(const JsonValueList *jvl,
|
||||
JsonValueListIterator *it);
|
||||
static JsonbValue *JsonValueListNext(const JsonValueList *jvl,
|
||||
JsonValueListIterator *it);
|
||||
static int JsonbType(JsonbValue *jb);
|
||||
static JsonbValue *JsonbInitBinary(JsonbValue *jbv, Jsonb *jb);
|
||||
static int JsonbType(JsonbValue *jb);
|
||||
static JsonbValue *getScalar(JsonbValue *scalar, enum jbvType type);
|
||||
@ -359,7 +358,7 @@ static JsonTablePlanState *JsonTableInitPlan(JsonTableExecContext *cxt,
|
||||
List *args,
|
||||
MemoryContext mcxt);
|
||||
static void JsonTableSetDocument(TableFuncScanState *state, Datum value);
|
||||
static void JsonTableResetRowPattern(JsonTablePlanState *plan, Datum item);
|
||||
static void JsonTableResetRowPattern(JsonTablePlanState *planstate, Datum item);
|
||||
static bool JsonTableFetchRow(TableFuncScanState *state);
|
||||
static Datum JsonTableGetValue(TableFuncScanState *state, int colnum,
|
||||
Oid typid, int32 typmod, bool *isnull);
|
||||
|
Reference in New Issue
Block a user