mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +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:
@@ -258,9 +258,9 @@ CreateStatistics(CreateStatsStmt *stmt)
|
||||
nattnums++;
|
||||
ReleaseSysCache(atttuple);
|
||||
}
|
||||
else if (IsA(selem->expr, Var)) /* column reference in parens */
|
||||
else if (IsA(selem->expr, Var)) /* column reference in parens */
|
||||
{
|
||||
Var *var = (Var *) selem->expr;
|
||||
Var *var = (Var *) selem->expr;
|
||||
TypeCacheEntry *type;
|
||||
|
||||
/* Disallow use of system attributes in extended stats */
|
||||
@@ -297,10 +297,11 @@ CreateStatistics(CreateStatsStmt *stmt)
|
||||
while ((k = bms_next_member(attnums, k)) >= 0)
|
||||
{
|
||||
AttrNumber attnum = k + FirstLowInvalidHeapAttributeNumber;
|
||||
|
||||
if (attnum <= 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("statistics creation on system columns is not supported")));
|
||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||
errmsg("statistics creation on system columns is not supported")));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -511,9 +512,9 @@ CreateStatistics(CreateStatsStmt *stmt)
|
||||
relation_close(statrel, RowExclusiveLock);
|
||||
|
||||
/*
|
||||
* We used to create the pg_statistic_ext_data tuple too, but it's not clear
|
||||
* what value should the stxdinherit flag have (it depends on whether the rel
|
||||
* is partitioned, contains data, etc.)
|
||||
* We used to create the pg_statistic_ext_data tuple too, but it's not
|
||||
* clear what value should the stxdinherit flag have (it depends on
|
||||
* whether the rel is partitioned, contains data, etc.)
|
||||
*/
|
||||
|
||||
InvokeObjectPostCreateHook(StatisticExtRelationId, statoid, 0);
|
||||
|
Reference in New Issue
Block a user