diff options
author | Peter Eisentraut | 2023-08-23 04:14:11 +0000 |
---|---|---|
committer | Peter Eisentraut | 2023-08-23 04:39:39 +0000 |
commit | ae556c44163b900aa5dfcca023dfbcdb1e2fd5fd (patch) | |
tree | e2ee4ae7d19361524a629eae41e55ce259367a89 /src/backend/catalog/index.c | |
parent | 23382b0f8b21e3f5330d765d1abfcef58d086111 (diff) |
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
Diffstat (limited to 'src/backend/catalog/index.c')
-rw-r--r-- | src/backend/catalog/index.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c index 05b6f9ca1ab..fd09378848e 100644 --- a/src/backend/catalog/index.c +++ b/src/backend/catalog/index.c @@ -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); } } |