mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
pgindent run prior to branching v12.
pgperltidy and reformat-dat-files too, though the latter didn't find anything to change.
This commit is contained in:
@ -1085,9 +1085,9 @@ DefineIndex(Oid relationId,
|
||||
childrel = table_open(childRelid, lockmode);
|
||||
|
||||
/*
|
||||
* Don't try to create indexes on foreign tables, though.
|
||||
* Skip those if a regular index, or fail if trying to create
|
||||
* a constraint index.
|
||||
* Don't try to create indexes on foreign tables, though. Skip
|
||||
* those if a regular index, or fail if trying to create a
|
||||
* constraint index.
|
||||
*/
|
||||
if (childrel->rd_rel->relkind == RELKIND_FOREIGN_TABLE)
|
||||
{
|
||||
@ -1097,7 +1097,7 @@ DefineIndex(Oid relationId,
|
||||
errmsg("cannot create unique index on partitioned table \"%s\"",
|
||||
RelationGetRelationName(rel)),
|
||||
errdetail("Table \"%s\" contains partitions that are foreign tables.",
|
||||
RelationGetRelationName(rel))));
|
||||
RelationGetRelationName(rel))));
|
||||
|
||||
table_close(childrel, lockmode);
|
||||
continue;
|
||||
|
@ -1077,7 +1077,7 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
|
||||
errmsg("cannot create foreign partition of partitioned table \"%s\"",
|
||||
RelationGetRelationName(parent)),
|
||||
errdetail("Table \"%s\" contains indexes that are unique.",
|
||||
RelationGetRelationName(parent))));
|
||||
RelationGetRelationName(parent))));
|
||||
else
|
||||
{
|
||||
index_close(idxRel, AccessShareLock);
|
||||
@ -15682,6 +15682,7 @@ ATExecAttachPartition(List **wqueue, Relation rel, PartitionCmd *cmd)
|
||||
defaultrel = table_open(defaultPartOid, NoLock);
|
||||
defPartConstraint =
|
||||
get_proposed_default_constraint(partBoundConstraint);
|
||||
|
||||
/*
|
||||
* Map the Vars in the constraint expression from rel's attnos to
|
||||
* defaultrel's.
|
||||
|
@ -1211,8 +1211,8 @@ check_temp_tablespaces(char **newval, void **extra, GucSource source)
|
||||
/*
|
||||
* If we aren't inside a transaction, or connected to a database, we
|
||||
* cannot do the catalog accesses necessary to verify the name. Must
|
||||
* accept the value on faith.
|
||||
* Fortunately, there's then also no need to pass the data to fd.c.
|
||||
* accept the value on faith. Fortunately, there's then also no need to
|
||||
* pass the data to fd.c.
|
||||
*/
|
||||
if (IsTransactionState() && MyDatabaseId != InvalidOid)
|
||||
{
|
||||
|
Reference in New Issue
Block a user