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:
Peter Geoghegan 2025-04-12 12:07:36 -04:00
parent fdb69dd582
commit a6cab6a78e
27 changed files with 45 additions and 51 deletions

View File

@ -54,7 +54,7 @@ static void overexplain_alias(const char *qlabel, Alias *alias,
ExplainState *es); ExplainState *es);
static void overexplain_bitmapset(const char *qlabel, Bitmapset *bms, static void overexplain_bitmapset(const char *qlabel, Bitmapset *bms,
ExplainState *es); ExplainState *es);
static void overexplain_intlist(const char *qlabel, List *intlist, static void overexplain_intlist(const char *qlabel, List *list,
ExplainState *es); ExplainState *es);
static int es_extension_id; static int es_extension_id;

View File

@ -444,7 +444,7 @@ static void adjust_foreign_grouping_path_cost(PlannerInfo *root,
double retrieved_rows, double retrieved_rows,
double width, double width,
double limit_tuples, double limit_tuples,
int *disabled_nodes, int *p_disabled_nodes,
Cost *p_startup_cost, Cost *p_startup_cost,
Cost *p_run_cost); Cost *p_run_cost);
static bool ec_member_matches_foreign(PlannerInfo *root, RelOptInfo *rel, static bool ec_member_matches_foreign(PlannerInfo *root, RelOptInfo *rel,

View File

@ -180,11 +180,11 @@ static void _gin_begin_parallel(GinBuildState *buildstate, Relation heap, Relati
bool isconcurrent, int request); bool isconcurrent, int request);
static void _gin_end_parallel(GinLeader *ginleader, GinBuildState *state); static void _gin_end_parallel(GinLeader *ginleader, GinBuildState *state);
static Size _gin_parallel_estimate_shared(Relation heap, Snapshot snapshot); static Size _gin_parallel_estimate_shared(Relation heap, Snapshot snapshot);
static double _gin_parallel_heapscan(GinBuildState *buildstate); static double _gin_parallel_heapscan(GinBuildState *state);
static double _gin_parallel_merge(GinBuildState *buildstate); static double _gin_parallel_merge(GinBuildState *state);
static void _gin_leader_participate_as_worker(GinBuildState *buildstate, static void _gin_leader_participate_as_worker(GinBuildState *buildstate,
Relation heap, Relation index); Relation heap, Relation index);
static void _gin_parallel_scan_and_build(GinBuildState *buildstate, static void _gin_parallel_scan_and_build(GinBuildState *state,
GinBuildShared *ginshared, GinBuildShared *ginshared,
Sharedsort *sharedsort, Sharedsort *sharedsort,
Relation heap, Relation index, Relation heap, Relation index,

View File

@ -397,7 +397,7 @@ static bool ATExecAlterConstraintInternal(List **wqueue, ATAlterConstraint *cmdc
bool recurse, LOCKMODE lockmode); bool recurse, LOCKMODE lockmode);
static bool ATExecAlterConstrEnforceability(List **wqueue, ATAlterConstraint *cmdcon, static bool ATExecAlterConstrEnforceability(List **wqueue, ATAlterConstraint *cmdcon,
Relation conrel, Relation tgrel, Relation conrel, Relation tgrel,
const Oid fkrelid, const Oid pkrelid, Oid fkrelid, Oid pkrelid,
HeapTuple contuple, LOCKMODE lockmode, HeapTuple contuple, LOCKMODE lockmode,
Oid ReferencedParentDelTrigger, Oid ReferencedParentDelTrigger,
Oid ReferencedParentUpdTrigger, Oid ReferencedParentUpdTrigger,
@ -415,7 +415,7 @@ static void AlterConstrTriggerDeferrability(Oid conoid, Relation tgrel, Relation
List **otherrelids); List **otherrelids);
static void AlterConstrEnforceabilityRecurse(List **wqueue, ATAlterConstraint *cmdcon, static void AlterConstrEnforceabilityRecurse(List **wqueue, ATAlterConstraint *cmdcon,
Relation conrel, Relation tgrel, Relation conrel, Relation tgrel,
const Oid fkrelid, const Oid pkrelid, Oid fkrelid, Oid pkrelid,
HeapTuple contuple, LOCKMODE lockmode, HeapTuple contuple, LOCKMODE lockmode,
Oid ReferencedParentDelTrigger, Oid ReferencedParentDelTrigger,
Oid ReferencedParentUpdTrigger, 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, static void set_attnotnull(List **wqueue, Relation rel, AttrNumber attnum,
bool is_valid, bool queue_validation); bool is_valid, bool queue_validation);
static ObjectAddress ATExecSetNotNull(List **wqueue, Relation rel, static ObjectAddress ATExecSetNotNull(List **wqueue, Relation rel,
char *constrname, char *colName, char *conName, char *colName,
bool recurse, bool recursing, bool recurse, bool recursing,
LOCKMODE lockmode); LOCKMODE lockmode);
static bool NotNullImpliedByRelConstraints(Relation rel, Form_pg_attribute attr); 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 validatePartitionedIndex(Relation partedIdx, Relation partedTbl);
static void refuseDupeIndexAttach(Relation parentIdx, Relation partIdx, static void refuseDupeIndexAttach(Relation parentIdx, Relation partIdx,
Relation partitionTbl); Relation partitionTbl);
static void verifyPartitionIndexNotNull(IndexInfo *iinfo, Relation partIdx); static void verifyPartitionIndexNotNull(IndexInfo *iinfo, Relation partition);
static List *GetParentedForeignKeyRefs(Relation partition); static List *GetParentedForeignKeyRefs(Relation partition);
static void ATDetachCheckNoForeignKeyRefs(Relation partition); static void ATDetachCheckNoForeignKeyRefs(Relation partition);
static char GetAttributeCompression(Oid atttypid, const char *compression); static char GetAttributeCompression(Oid atttypid, const char *compression);

View File

@ -191,7 +191,7 @@ static void InitPartitionPruneContext(PartitionPruneContext *context,
PartitionKey partkey, PartitionKey partkey,
PlanState *planstate, PlanState *planstate,
ExprContext *econtext); ExprContext *econtext);
static void InitExecPartitionPruneContexts(PartitionPruneState *prunstate, static void InitExecPartitionPruneContexts(PartitionPruneState *prunestate,
PlanState *parent_plan, PlanState *parent_plan,
Bitmapset *initially_valid_subplans, Bitmapset *initially_valid_subplans,
int n_total_subplans); int n_total_subplans);

View File

@ -58,10 +58,10 @@ bool query_id_enabled = false;
static JumbleState *InitJumble(void); static JumbleState *InitJumble(void);
static uint64 DoJumble(JumbleState *jstate, Node *node); static uint64 DoJumble(JumbleState *jstate, Node *node);
static void AppendJumble(JumbleState *jstate, static void AppendJumble(JumbleState *jstate,
const unsigned char *item, Size size); const unsigned char *value, Size size);
static void FlushPendingNulls(JumbleState *jstate); static void FlushPendingNulls(JumbleState *jstate);
static void RecordConstLocation(JumbleState *jstate, static void RecordConstLocation(JumbleState *jstate,
int location, bool merged); int location, bool squashed);
static void _jumbleNode(JumbleState *jstate, Node *node); static void _jumbleNode(JumbleState *jstate, Node *node);
static void _jumbleElements(JumbleState *jstate, List *elements); static void _jumbleElements(JumbleState *jstate, List *elements);
static void _jumbleA_Const(JumbleState *jstate, Node *node); static void _jumbleA_Const(JumbleState *jstate, Node *node);

View File

@ -527,7 +527,7 @@ static inline BufferDesc *BufferAlloc(SMgrRelation smgr,
BlockNumber blockNum, BlockNumber blockNum,
BufferAccessStrategy strategy, BufferAccessStrategy strategy,
bool *foundPtr, IOContext io_context); 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 void CheckReadBuffersOperation(ReadBuffersOperation *operation, bool is_complete);
static Buffer GetVictimBuffer(BufferAccessStrategy strategy, IOContext io_context); static Buffer GetVictimBuffer(BufferAccessStrategy strategy, IOContext io_context);
static void FlushBuffer(BufferDesc *buf, SMgrRelation reln, static void FlushBuffer(BufferDesc *buf, SMgrRelation reln,

View File

@ -154,7 +154,7 @@ static BlockNumber _mdnblocks(SMgrRelation reln, ForkNumber forknum,
MdfdVec *seg); MdfdVec *seg);
static PgAioResult md_readv_complete(PgAioHandle *ioh, PgAioResult prior_result, uint8 cb_data); 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 = { const PgAioHandleCallbacks aio_md_readv_cb = {
.complete_shared = md_readv_complete, .complete_shared = md_readv_complete,

View File

@ -127,7 +127,7 @@ static AclMode convert_tablespace_priv_string(text *priv_type_text);
static Oid convert_type_name(text *typename); static Oid convert_type_name(text *typename);
static AclMode convert_type_priv_string(text *priv_type_text); static AclMode convert_type_priv_string(text *priv_type_text);
static AclMode convert_parameter_priv_string(text *priv_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 AclMode convert_role_priv_string(text *priv_type_text);
static AclResult pg_role_aclcheck(Oid role_oid, Oid roleid, AclMode mode); static AclResult pg_role_aclcheck(Oid role_oid, Oid roleid, AclMode mode);

View File

@ -25,13 +25,13 @@
extern pg_locale_t create_pg_locale_builtin(Oid collid, extern pg_locale_t create_pg_locale_builtin(Oid collid,
MemoryContext context); MemoryContext context);
extern char *get_collation_actual_version_builtin(const char *collcollate); 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); 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); 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); 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); ssize_t srclen, pg_locale_t locale);

View File

@ -48,28 +48,22 @@
#define TEXTBUFLEN 1024 #define TEXTBUFLEN 1024
extern pg_locale_t create_pg_locale_icu(Oid collid, MemoryContext context); 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); 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); 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); 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); ssize_t srclen, pg_locale_t locale);
#ifdef USE_ICU #ifdef USE_ICU
extern UCollator *pg_ucol_open(const char *loc_str); 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, static size_t strnxfrm_icu(char *dest, size_t destsize,
const char *src, ssize_t srclen, const char *src, ssize_t srclen,
pg_locale_t locale); 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); extern char *get_collation_actual_version_icu(const char *collcollate);
typedef int32_t (*ICU_Convert_Func) (UChar *dest, int32_t destCapacity, typedef int32_t (*ICU_Convert_Func) (UChar *dest, int32_t destCapacity,

View File

@ -184,7 +184,7 @@ static void MemoryContextStatsInternal(MemoryContext context, int level,
static void MemoryContextStatsPrint(MemoryContext context, void *passthru, static void MemoryContextStatsPrint(MemoryContext context, void *passthru,
const char *stats_string, const char *stats_string,
bool print_to_stderr); bool print_to_stderr);
static void PublishMemoryContext(MemoryStatsEntry *memcxt_infos, static void PublishMemoryContext(MemoryStatsEntry *memcxt_info,
int curr_id, MemoryContext context, int curr_id, MemoryContext context,
List *path, List *path,
MemoryContextCounters stat, MemoryContextCounters stat,

View File

@ -60,7 +60,7 @@ static void gen_reindex_command(PGconn *conn, ReindexType type,
PQExpBufferData *sql); PQExpBufferData *sql);
static void run_reindex_command(PGconn *conn, ReindexType type, static void run_reindex_command(PGconn *conn, ReindexType type,
const char *name, bool echo, const char *name, bool echo,
PQExpBufferData *sq); PQExpBufferData *sql);
static void help(const char *progname); static void help(const char *progname);

View File

@ -44,7 +44,7 @@ static size_t convert_case(char *dst, size_t dstsize, const char *src, ssize_t s
void *wbstate); void *wbstate);
static enum CaseMapResult casemap(pg_wchar u1, CaseKind casekind, bool full, static enum CaseMapResult casemap(pg_wchar u1, CaseKind casekind, bool full,
const char *src, size_t srclen, size_t srcoff, const char *src, size_t srclen, size_t srcoff,
pg_wchar *u2, const pg_wchar **special); pg_wchar *simple, const pg_wchar **special);
pg_wchar pg_wchar
unicode_lowercase_simple(pg_wchar code) unicode_lowercase_simple(pg_wchar code)

View File

@ -64,7 +64,7 @@ extern void ExplainOneUtility(Node *utilityStmt, IntoClause *into,
ParamListInfo params); ParamListInfo params);
extern void ExplainOnePlan(PlannedStmt *plannedstmt, CachedPlan *cplan, extern void ExplainOnePlan(PlannedStmt *plannedstmt, CachedPlan *cplan,
CachedPlanSource *plansource, int plan_index, CachedPlanSource *plansource, int query_index,
IntoClause *into, struct ExplainState *es, IntoClause *into, struct ExplainState *es,
const char *queryString, const char *queryString,
ParamListInfo params, QueryEnvironment *queryEnv, ParamListInfo params, QueryEnvironment *queryEnv,

View File

@ -96,6 +96,6 @@ extern PGDLLIMPORT const pg_be_sasl_mech pg_be_oauth_mech;
/* /*
* Ensure a validator named in the HBA is permitted by the configuration. * Ensure a validator named in the HBA is permitted by the configuration.
*/ */
extern bool check_oauth_validator(HbaLine *hba, int elevel, char **err_msg); extern bool check_oauth_validator(HbaLine *hbaline, int elevel, char **err_msg);
#endif /* PG_OAUTH_H */ #endif /* PG_OAUTH_H */

View File

@ -108,7 +108,7 @@ extern void cost_resultscan(Path *path, PlannerInfo *root,
RelOptInfo *baserel, ParamPathInfo *param_info); RelOptInfo *baserel, ParamPathInfo *param_info);
extern void cost_recursive_union(Path *runion, Path *nrterm, Path *rterm); extern void cost_recursive_union(Path *runion, Path *nrterm, Path *rterm);
extern void cost_sort(Path *path, PlannerInfo *root, extern void cost_sort(Path *path, PlannerInfo *root,
List *pathkeys, int disabled_nodes, List *pathkeys, int input_disabled_nodes,
Cost input_cost, double tuples, int width, Cost input_cost, double tuples, int width,
Cost comparison_cost, int sort_mem, Cost comparison_cost, int sort_mem,
double limit_tuples); double limit_tuples);
@ -132,7 +132,7 @@ extern void cost_agg(Path *path, PlannerInfo *root,
AggStrategy aggstrategy, const AggClauseCosts *aggcosts, AggStrategy aggstrategy, const AggClauseCosts *aggcosts,
int numGroupCols, double numGroups, int numGroupCols, double numGroups,
List *quals, List *quals,
int input_disabled_nodes, int disabled_nodes,
Cost input_startup_cost, Cost input_total_cost, Cost input_startup_cost, Cost input_total_cost,
double input_tuples, double input_width); double input_tuples, double input_width);
extern void cost_windowagg(Path *path, PlannerInfo *root, extern void cost_windowagg(Path *path, PlannerInfo *root,

View File

@ -117,8 +117,8 @@ extern bool innerrel_is_unique(PlannerInfo *root,
extern bool innerrel_is_unique_ext(PlannerInfo *root, Relids joinrelids, extern bool innerrel_is_unique_ext(PlannerInfo *root, Relids joinrelids,
Relids outerrelids, RelOptInfo *innerrel, Relids outerrelids, RelOptInfo *innerrel,
JoinType jointype, List *restrictlist, JoinType jointype, List *restrictlist,
bool force_cache, List **uclauses); bool force_cache, List **extra_clauses);
extern List *remove_useless_self_joins(PlannerInfo *root, List *jointree); extern List *remove_useless_self_joins(PlannerInfo *root, List *joinlist);
/* /*
* prototypes for plan/setrefs.c * prototypes for plan/setrefs.c

View File

@ -107,7 +107,7 @@ extern pg_crc32c pg_comp_crc32c_sb8(pg_crc32c crc, const void *data, size_t len)
extern PGDLLIMPORT pg_crc32c (*pg_comp_crc32c) (pg_crc32c crc, const void *data, size_t len); extern PGDLLIMPORT pg_crc32c (*pg_comp_crc32c) (pg_crc32c crc, const void *data, size_t len);
extern pg_crc32c pg_comp_crc32c_sse42(pg_crc32c crc, const void *data, size_t len); extern pg_crc32c pg_comp_crc32c_sse42(pg_crc32c crc, const void *data, size_t len);
#ifdef USE_AVX512_CRC32C_WITH_RUNTIME_CHECK #ifdef USE_AVX512_CRC32C_WITH_RUNTIME_CHECK
extern pg_crc32c pg_comp_crc32c_avx512(pg_crc32c crc, const void *data, size_t len); extern pg_crc32c pg_comp_crc32c_avx512(pg_crc32c crc, const void *data, size_t length);
#endif #endif
#elif defined(USE_ARMV8_CRC32C) #elif defined(USE_ARMV8_CRC32C)

View File

@ -307,7 +307,7 @@ extern void CheckPointReplicationSlots(bool is_shutdown);
extern void CheckSlotRequirements(void); extern void CheckSlotRequirements(void);
extern void CheckSlotPermissions(void); extern void CheckSlotPermissions(void);
extern ReplicationSlotInvalidationCause extern ReplicationSlotInvalidationCause
GetSlotInvalidationCause(const char *invalidation_reason); GetSlotInvalidationCause(const char *cause_name);
extern const char *GetSlotInvalidationCauseName(ReplicationSlotInvalidationCause cause); extern const char *GetSlotInvalidationCauseName(ReplicationSlotInvalidationCause cause);
extern bool SlotExistsInSyncStandbySlots(const char *slot_name); extern bool SlotExistsInSyncStandbySlots(const char *slot_name);

View File

@ -129,8 +129,8 @@ extern bool LWLockAcquireOrWait(LWLock *lock, LWLockMode mode);
extern void LWLockRelease(LWLock *lock); extern void LWLockRelease(LWLock *lock);
extern void LWLockReleaseClearVar(LWLock *lock, pg_atomic_uint64 *valptr, uint64 val); extern void LWLockReleaseClearVar(LWLock *lock, pg_atomic_uint64 *valptr, uint64 val);
extern void LWLockReleaseAll(void); extern void LWLockReleaseAll(void);
extern void LWLockDisown(LWLock *l); extern void LWLockDisown(LWLock *lock);
extern void LWLockReleaseDisowned(LWLock *l, LWLockMode mode); extern void LWLockReleaseDisowned(LWLock *lock, LWLockMode mode);
extern bool LWLockHeldByMe(LWLock *lock); extern bool LWLockHeldByMe(LWLock *lock);
extern bool LWLockAnyHeldByMe(LWLock *lock, int nlocks, size_t stride); extern bool LWLockAnyHeldByMe(LWLock *lock, int nlocks, size_t stride);
extern bool LWLockHeldByMeInMode(LWLock *lock, LWLockMode mode); extern bool LWLockHeldByMeInMode(LWLock *lock, LWLockMode mode);

View File

@ -49,7 +49,7 @@ extern void mdwriteback(SMgrRelation reln, ForkNumber forknum,
BlockNumber blocknum, BlockNumber nblocks); BlockNumber blocknum, BlockNumber nblocks);
extern BlockNumber mdnblocks(SMgrRelation reln, ForkNumber forknum); extern BlockNumber mdnblocks(SMgrRelation reln, ForkNumber forknum);
extern void mdtruncate(SMgrRelation reln, ForkNumber forknum, extern void mdtruncate(SMgrRelation reln, ForkNumber forknum,
BlockNumber old_blocks, BlockNumber nblocks); BlockNumber curnblk, BlockNumber nblocks);
extern void mdimmedsync(SMgrRelation reln, ForkNumber forknum); extern void mdimmedsync(SMgrRelation reln, ForkNumber forknum);
extern void mdregistersync(SMgrRelation reln, ForkNumber forknum); extern void mdregistersync(SMgrRelation reln, ForkNumber forknum);
extern int mdfd(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum, uint32 *off); extern int mdfd(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum, uint32 *off);

View File

@ -125,16 +125,16 @@ extern void init_database_collation(void);
extern pg_locale_t pg_newlocale_from_collation(Oid collid); extern pg_locale_t pg_newlocale_from_collation(Oid collid);
extern char *get_collation_actual_version(char collprovider, const char *collcollate); extern char *get_collation_actual_version(char collprovider, const char *collcollate);
extern size_t pg_strlower(char *dest, size_t destsize, extern size_t pg_strlower(char *dst, size_t dstsize,
const char *src, ssize_t srclen, const char *src, ssize_t srclen,
pg_locale_t locale); pg_locale_t locale);
extern size_t pg_strtitle(char *dest, size_t destsize, extern size_t pg_strtitle(char *dst, size_t dstsize,
const char *src, ssize_t srclen, const char *src, ssize_t srclen,
pg_locale_t locale); pg_locale_t locale);
extern size_t pg_strupper(char *dest, size_t destsize, extern size_t pg_strupper(char *dst, size_t dstsize,
const char *src, ssize_t srclen, const char *src, ssize_t srclen,
pg_locale_t locale); pg_locale_t locale);
extern size_t pg_strfold(char *dest, size_t destsize, extern size_t pg_strfold(char *dst, size_t dstsize,
const char *src, ssize_t srclen, const char *src, ssize_t srclen,
pg_locale_t locale); pg_locale_t locale);
extern int pg_strcoll(const char *arg1, const char *arg2, pg_locale_t locale); extern int pg_strcoll(const char *arg1, const char *arg2, pg_locale_t locale);

View File

@ -65,7 +65,7 @@ extern void tuplestore_copy_read_pointer(Tuplestorestate *state,
extern void tuplestore_trim(Tuplestorestate *state); extern void tuplestore_trim(Tuplestorestate *state);
extern void tuplestore_get_stats(Tuplestorestate *state, char **storage_type, extern void tuplestore_get_stats(Tuplestorestate *state, char **max_storage_type,
int64 *max_space); int64 *max_space);
extern bool tuplestore_in_memory(Tuplestorestate *state); extern bool tuplestore_in_memory(Tuplestorestate *state);

View File

@ -22,7 +22,7 @@ PG_MODULE_MAGIC;
static bool fail_token(const ValidatorModuleState *state, static bool fail_token(const ValidatorModuleState *state,
const char *token, const char *token,
const char *role, const char *role,
ValidatorModuleResult *result); ValidatorModuleResult *res);
/* Callback implementations (we only need the main one) */ /* Callback implementations (we only need the main one) */
static const OAuthValidatorCallbacks validator_callbacks = { static const OAuthValidatorCallbacks validator_callbacks = {

View File

@ -23,7 +23,7 @@ PG_MODULE_MAGIC;
static bool validate_token(const ValidatorModuleState *state, static bool validate_token(const ValidatorModuleState *state,
const char *token, const char *token,
const char *role, const char *role,
ValidatorModuleResult *result); ValidatorModuleResult *res);
/* Callback implementations (we only need the main one) */ /* Callback implementations (we only need the main one) */
static const OAuthValidatorCallbacks validator_callbacks = { static const OAuthValidatorCallbacks validator_callbacks = {

View File

@ -26,7 +26,7 @@ static void validator_shutdown(ValidatorModuleState *state);
static bool validate_token(const ValidatorModuleState *state, static bool validate_token(const ValidatorModuleState *state,
const char *token, const char *token,
const char *role, const char *role,
ValidatorModuleResult *result); ValidatorModuleResult *res);
/* Callback implementations (exercise all three) */ /* Callback implementations (exercise all three) */
static const OAuthValidatorCallbacks validator_callbacks = { static const OAuthValidatorCallbacks validator_callbacks = {