mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Some vertical reformatting
Remove some line breaks that have become unnecessary after some variable renaming. Discussion: https://www.postgresql.org/message-id/flat/5ed89c69-f4e6-5dab-4003-63bde7460e5e%40eisentraut.org
This commit is contained in:
@@ -329,8 +329,7 @@ ConstructTupleDescriptor(Relation heapRelation,
|
||||
to->attstattarget = -1;
|
||||
to->attcacheoff = -1;
|
||||
to->attislocal = true;
|
||||
to->attcollation = (i < numkeyatts) ?
|
||||
collationIds[i] : InvalidOid;
|
||||
to->attcollation = (i < numkeyatts) ? collationIds[i] : InvalidOid;
|
||||
|
||||
/*
|
||||
* Set the attribute name as specified by caller.
|
||||
@@ -438,8 +437,7 @@ ConstructTupleDescriptor(Relation heapRelation,
|
||||
{
|
||||
tuple = SearchSysCache1(CLAOID, ObjectIdGetDatum(opclassIds[i]));
|
||||
if (!HeapTupleIsValid(tuple))
|
||||
elog(ERROR, "cache lookup failed for opclass %u",
|
||||
opclassIds[i]);
|
||||
elog(ERROR, "cache lookup failed for opclass %u", opclassIds[i]);
|
||||
opclassTup = (Form_pg_opclass) GETSTRUCT(tuple);
|
||||
if (OidIsValid(opclassTup->opckeytype))
|
||||
keyType = opclassTup->opckeytype;
|
||||
@@ -1159,11 +1157,9 @@ index_create(Relation heapRelation,
|
||||
/* The default collation is pinned, so don't bother recording it */
|
||||
for (i = 0; i < indexInfo->ii_NumIndexKeyAttrs; i++)
|
||||
{
|
||||
if (OidIsValid(collationIds[i]) &&
|
||||
collationIds[i] != DEFAULT_COLLATION_OID)
|
||||
if (OidIsValid(collationIds[i]) && collationIds[i] != DEFAULT_COLLATION_OID)
|
||||
{
|
||||
ObjectAddressSet(referenced, CollationRelationId,
|
||||
collationIds[i]);
|
||||
ObjectAddressSet(referenced, CollationRelationId, collationIds[i]);
|
||||
add_exact_object_address(&referenced, addrs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user