mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
This commit is contained in:
34
src/backend/utils/cache/catcache.c
vendored
34
src/backend/utils/cache/catcache.c
vendored
@ -64,24 +64,24 @@
|
||||
static CatCacheHeader *CacheHdr = NULL;
|
||||
|
||||
static inline HeapTuple SearchCatCacheInternal(CatCache *cache,
|
||||
int nkeys,
|
||||
Datum v1, Datum v2,
|
||||
Datum v3, Datum v4);
|
||||
int nkeys,
|
||||
Datum v1, Datum v2,
|
||||
Datum v3, Datum v4);
|
||||
|
||||
static pg_noinline HeapTuple SearchCatCacheMiss(CatCache *cache,
|
||||
int nkeys,
|
||||
uint32 hashValue,
|
||||
Index hashIndex,
|
||||
Datum v1, Datum v2,
|
||||
Datum v3, Datum v4);
|
||||
int nkeys,
|
||||
uint32 hashValue,
|
||||
Index hashIndex,
|
||||
Datum v1, Datum v2,
|
||||
Datum v3, Datum v4);
|
||||
|
||||
static uint32 CatalogCacheComputeHashValue(CatCache *cache, int nkeys,
|
||||
Datum v1, Datum v2, Datum v3, Datum v4);
|
||||
Datum v1, Datum v2, Datum v3, Datum v4);
|
||||
static uint32 CatalogCacheComputeTupleHashValue(CatCache *cache, int nkeys,
|
||||
HeapTuple tuple);
|
||||
HeapTuple tuple);
|
||||
static inline bool CatalogCacheCompareTuple(const CatCache *cache, int nkeys,
|
||||
const Datum *cachekeys,
|
||||
const Datum *searchkeys);
|
||||
const Datum *cachekeys,
|
||||
const Datum *searchkeys);
|
||||
|
||||
#ifdef CATCACHE_STATS
|
||||
static void CatCachePrintStats(int code, Datum arg);
|
||||
@ -90,14 +90,14 @@ static void CatCacheRemoveCTup(CatCache *cache, CatCTup *ct);
|
||||
static void CatCacheRemoveCList(CatCache *cache, CatCList *cl);
|
||||
static void CatalogCacheInitializeCache(CatCache *cache);
|
||||
static CatCTup *CatalogCacheCreateEntry(CatCache *cache, HeapTuple ntp,
|
||||
Datum *arguments,
|
||||
uint32 hashValue, Index hashIndex,
|
||||
bool negative);
|
||||
Datum *arguments,
|
||||
uint32 hashValue, Index hashIndex,
|
||||
bool negative);
|
||||
|
||||
static void CatCacheFreeKeys(TupleDesc tupdesc, int nkeys, int *attnos,
|
||||
Datum *keys);
|
||||
Datum *keys);
|
||||
static void CatCacheCopyKeys(TupleDesc tupdesc, int nkeys, int *attnos,
|
||||
Datum *srckeys, Datum *dstkeys);
|
||||
Datum *srckeys, Datum *dstkeys);
|
||||
|
||||
|
||||
/*
|
||||
|
2
src/backend/utils/cache/evtcache.c
vendored
2
src/backend/utils/cache/evtcache.c
vendored
@ -50,7 +50,7 @@ static EventTriggerCacheStateType EventTriggerCacheState = ETCS_NEEDS_REBUILD;
|
||||
|
||||
static void BuildEventTriggerCache(void);
|
||||
static void InvalidateEventCacheCallback(Datum arg,
|
||||
int cacheid, uint32 hashvalue);
|
||||
int cacheid, uint32 hashvalue);
|
||||
static int DecodeTextArrayToCString(Datum array, char ***cstringp);
|
||||
|
||||
/*
|
||||
|
6
src/backend/utils/cache/plancache.c
vendored
6
src/backend/utils/cache/plancache.c
vendored
@ -98,12 +98,12 @@ static dlist_head cached_expression_list = DLIST_STATIC_INIT(cached_expression_l
|
||||
|
||||
static void ReleaseGenericPlan(CachedPlanSource *plansource);
|
||||
static List *RevalidateCachedQuery(CachedPlanSource *plansource,
|
||||
QueryEnvironment *queryEnv);
|
||||
QueryEnvironment *queryEnv);
|
||||
static bool CheckCachedPlan(CachedPlanSource *plansource);
|
||||
static CachedPlan *BuildCachedPlan(CachedPlanSource *plansource, List *qlist,
|
||||
ParamListInfo boundParams, QueryEnvironment *queryEnv);
|
||||
ParamListInfo boundParams, QueryEnvironment *queryEnv);
|
||||
static bool choose_custom_plan(CachedPlanSource *plansource,
|
||||
ParamListInfo boundParams);
|
||||
ParamListInfo boundParams);
|
||||
static double cached_plan_cost(CachedPlan *plan, bool include_planner);
|
||||
static Query *QueryListGetPrimaryStmt(List *stmts);
|
||||
static void AcquireExecutorLocks(List *stmt_list, bool acquire);
|
||||
|
16
src/backend/utils/cache/relcache.c
vendored
16
src/backend/utils/cache/relcache.c
vendored
@ -265,13 +265,13 @@ static void RelationFlushRelation(Relation relation);
|
||||
static void RememberToFreeTupleDescAtEOX(TupleDesc td);
|
||||
static void AtEOXact_cleanup(Relation relation, bool isCommit);
|
||||
static void AtEOSubXact_cleanup(Relation relation, bool isCommit,
|
||||
SubTransactionId mySubid, SubTransactionId parentSubid);
|
||||
SubTransactionId mySubid, SubTransactionId parentSubid);
|
||||
static bool load_relcache_init_file(bool shared);
|
||||
static void write_relcache_init_file(bool shared);
|
||||
static void write_item(const void *data, Size len, FILE *fp);
|
||||
|
||||
static void formrdesc(const char *relationName, Oid relationReltype,
|
||||
bool isshared, int natts, const FormData_pg_attribute *attrs);
|
||||
bool isshared, int natts, const FormData_pg_attribute *attrs);
|
||||
|
||||
static HeapTuple ScanPgRelation(Oid targetRelId, bool indexOK, bool force_non_historic);
|
||||
static Relation AllocateRelationDesc(Form_pg_class relp);
|
||||
@ -288,13 +288,13 @@ static int CheckConstraintCmp(const void *a, const void *b);
|
||||
static List *insert_ordered_oid(List *list, Oid datum);
|
||||
static void InitIndexAmRoutine(Relation relation);
|
||||
static void IndexSupportInitialize(oidvector *indclass,
|
||||
RegProcedure *indexSupport,
|
||||
Oid *opFamily,
|
||||
Oid *opcInType,
|
||||
StrategyNumber maxSupportNumber,
|
||||
AttrNumber maxAttributeNumber);
|
||||
RegProcedure *indexSupport,
|
||||
Oid *opFamily,
|
||||
Oid *opcInType,
|
||||
StrategyNumber maxSupportNumber,
|
||||
AttrNumber maxAttributeNumber);
|
||||
static OpClassCacheEnt *LookupOpclassInfo(Oid operatorClassOid,
|
||||
StrategyNumber numSupport);
|
||||
StrategyNumber numSupport);
|
||||
static void RelationCacheInitFileRemoveInDir(const char *tblspcpath);
|
||||
static void unlink_initfile(const char *initfilename, int elevel);
|
||||
|
||||
|
8
src/backend/utils/cache/relmapper.c
vendored
8
src/backend/utils/cache/relmapper.c
vendored
@ -133,13 +133,13 @@ static RelMapFile pending_local_updates;
|
||||
|
||||
/* non-export function prototypes */
|
||||
static void apply_map_update(RelMapFile *map, Oid relationId, Oid fileNode,
|
||||
bool add_okay);
|
||||
bool add_okay);
|
||||
static void merge_map_updates(RelMapFile *map, const RelMapFile *updates,
|
||||
bool add_okay);
|
||||
bool add_okay);
|
||||
static void load_relmap_file(bool shared);
|
||||
static void write_relmap_file(bool shared, RelMapFile *newmap,
|
||||
bool write_wal, bool send_sinval, bool preserve_files,
|
||||
Oid dbid, Oid tsid, const char *dbpath);
|
||||
bool write_wal, bool send_sinval, bool preserve_files,
|
||||
Oid dbid, Oid tsid, const char *dbpath);
|
||||
static void perform_relmap_update(bool shared, const RelMapFile *updates);
|
||||
|
||||
|
||||
|
4
src/backend/utils/cache/typcache.c
vendored
4
src/backend/utils/cache/typcache.c
vendored
@ -301,10 +301,10 @@ static void load_enum_cache_data(TypeCacheEntry *tcache);
|
||||
static EnumItem *find_enumitem(TypeCacheEnumData *enumdata, Oid arg);
|
||||
static int enum_oid_cmp(const void *left, const void *right);
|
||||
static void shared_record_typmod_registry_detach(dsm_segment *segment,
|
||||
Datum datum);
|
||||
Datum datum);
|
||||
static TupleDesc find_or_make_matching_shared_tupledesc(TupleDesc tupdesc);
|
||||
static dsa_pointer share_tupledesc(dsa_area *area, TupleDesc tupdesc,
|
||||
uint32 typmod);
|
||||
uint32 typmod);
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user