mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Remove useless if condition
We can call GetAttributeCompression() with a NULL argument. It handles that internally already. This change makes all the callers of GetAttributeCompression() uniform. Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da@eisentraut.org
This commit is contained in:
parent
689c66a84b
commit
6844d3275a
@ -944,11 +944,7 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
|
|||||||
|
|
||||||
attr->attidentity = colDef->identity;
|
attr->attidentity = colDef->identity;
|
||||||
attr->attgenerated = colDef->generated;
|
attr->attgenerated = colDef->generated;
|
||||||
|
attr->attcompression = GetAttributeCompression(attr->atttypid, colDef->compression);
|
||||||
if (colDef->compression)
|
|
||||||
attr->attcompression = GetAttributeCompression(attr->atttypid,
|
|
||||||
colDef->compression);
|
|
||||||
|
|
||||||
if (colDef->storage_name)
|
if (colDef->storage_name)
|
||||||
attr->attstorage = GetAttributeStorage(attr->atttypid, colDef->storage_name);
|
attr->attstorage = GetAttributeStorage(attr->atttypid, colDef->storage_name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user