mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files. I manually fixed a couple of comments that pgindent uglified.
This commit is contained in:
@@ -32,6 +32,6 @@ extern char *asc_initcap(const char *buff, size_t nbytes);
|
||||
extern Datum parse_datetime(text *date_txt, text *fmt, Oid collid, bool strict,
|
||||
Oid *typid, int32 *typmod, int *tz,
|
||||
bool *have_error);
|
||||
extern int datetime_format_flags(const char *fmt_str, bool *have_error);
|
||||
extern int datetime_format_flags(const char *fmt_str, bool *have_error);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -263,8 +263,8 @@ typedef struct JsonPathVariableEvalContext
|
||||
Oid typid;
|
||||
int32 typmod;
|
||||
struct ExprContext *econtext;
|
||||
struct ExprState *estate;
|
||||
MemoryContext mcxt; /* memory context for cached value */
|
||||
struct ExprState *estate;
|
||||
MemoryContext mcxt; /* memory context for cached value */
|
||||
Datum value;
|
||||
bool isnull;
|
||||
bool evaluated;
|
||||
@@ -274,14 +274,14 @@ typedef struct JsonPathVariableEvalContext
|
||||
extern void JsonItemFromDatum(Datum val, Oid typid, int32 typmod,
|
||||
JsonbValue *res);
|
||||
|
||||
extern bool JsonPathExists(Datum jb, JsonPath *path, List *vars, bool *error);
|
||||
extern bool JsonPathExists(Datum jb, JsonPath *path, List *vars, bool *error);
|
||||
extern Datum JsonPathQuery(Datum jb, JsonPath *jp, JsonWrapper wrapper,
|
||||
bool *empty, bool *error, List *vars);
|
||||
extern JsonbValue *JsonPathValue(Datum jb, JsonPath *jp, bool *empty,
|
||||
bool *error, List *vars);
|
||||
|
||||
extern int EvalJsonPathVar(void *vars, char *varName, int varNameLen,
|
||||
JsonbValue *val, JsonbValue *baseObject);
|
||||
extern int EvalJsonPathVar(void *vars, char *varName, int varNameLen,
|
||||
JsonbValue *val, JsonbValue *baseObject);
|
||||
|
||||
extern PGDLLIMPORT const TableFuncRoutine JsonbTableRoutine;
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ typedef struct RelationData
|
||||
Bitmapset *rd_keyattr; /* cols that can be ref'd by foreign keys */
|
||||
Bitmapset *rd_pkattr; /* cols included in primary key */
|
||||
Bitmapset *rd_idattr; /* included in replica identity index */
|
||||
Bitmapset *rd_hotblockingattr; /* cols blocking HOT update */
|
||||
Bitmapset *rd_hotblockingattr; /* cols blocking HOT update */
|
||||
|
||||
PublicationDesc *rd_pubdesc; /* publication descriptor, or NULL */
|
||||
|
||||
@@ -246,7 +246,7 @@ typedef struct RelationData
|
||||
*/
|
||||
Oid rd_toastoid; /* Real TOAST table's OID, or InvalidOid */
|
||||
|
||||
bool pgstat_enabled; /* should relation stats be counted */
|
||||
bool pgstat_enabled; /* should relation stats be counted */
|
||||
/* use "struct" here to avoid needing to include pgstat.h: */
|
||||
struct PgStat_TableStatus *pgstat_info; /* statistics collection area */
|
||||
} RelationData;
|
||||
|
||||
@@ -38,7 +38,7 @@ typedef struct xl_relmap_update
|
||||
extern Oid RelationMapOidToFilenode(Oid relationId, bool shared);
|
||||
|
||||
extern Oid RelationMapFilenodeToOid(Oid relationId, bool shared);
|
||||
extern Oid RelationMapOidToFilenodeForDatabase(char *dbpath, Oid relationId);
|
||||
extern Oid RelationMapOidToFilenodeForDatabase(char *dbpath, Oid relationId);
|
||||
extern void RelationMapCopy(Oid dbid, Oid tsid, char *srcdbpath,
|
||||
char *dstdbpath);
|
||||
extern void RelationMapUpdateMap(Oid relationId, Oid fileNode, bool shared,
|
||||
|
||||
@@ -215,9 +215,9 @@ extern double estimate_num_groups(PlannerInfo *root, List *groupExprs,
|
||||
EstimationInfo *estinfo);
|
||||
|
||||
extern double estimate_num_groups_incremental(PlannerInfo *root, List *groupExprs,
|
||||
double input_rows, List **pgset,
|
||||
EstimationInfo *estinfo,
|
||||
List **cache_varinfos, int prevNExprs);
|
||||
double input_rows, List **pgset,
|
||||
EstimationInfo *estinfo,
|
||||
List **cache_varinfos, int prevNExprs);
|
||||
|
||||
extern void estimate_hash_bucket_stats(PlannerInfo *root,
|
||||
Node *hashkey, double nbuckets,
|
||||
|
||||
@@ -375,11 +375,11 @@ ApplySortAbbrevFullComparator(Datum datum1, bool isNull1,
|
||||
* Datatypes that install these as their comparator or abbrevated comparator
|
||||
* are eligible for faster sorting.
|
||||
*/
|
||||
extern int ssup_datum_unsigned_cmp(Datum x, Datum y, SortSupport ssup);
|
||||
extern int ssup_datum_unsigned_cmp(Datum x, Datum y, SortSupport ssup);
|
||||
#if SIZEOF_DATUM >= 8
|
||||
extern int ssup_datum_signed_cmp(Datum x, Datum y, SortSupport ssup);
|
||||
extern int ssup_datum_signed_cmp(Datum x, Datum y, SortSupport ssup);
|
||||
#endif
|
||||
extern int ssup_datum_int32_cmp(Datum x, Datum y, SortSupport ssup);
|
||||
extern int ssup_datum_int32_cmp(Datum x, Datum y, SortSupport ssup);
|
||||
|
||||
/* Other functions in utils/sort/sortsupport.c */
|
||||
extern void PrepareSortSupportComparisonShim(Oid cmpFunc, SortSupport ssup);
|
||||
|
||||
Reference in New Issue
Block a user