Remove useless if condition
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Aug 2023 06:58:56 +0000 (08:58 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Aug 2023 06:58:56 +0000 (08:58 +0200)
commit6844d3275ac6b3c35d824f49362d3fe59b30f26b
tree00aec58aa8d096cd3d4c8afb2eac478db8b6966b
parent689c66a84bb75e08462c05ffc18514895b19d48e
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
src/backend/commands/tablecmds.c