Remove redundant setting of pg_attribute.attcompression
authorJohn Naylor
Sat, 31 Jul 2021 11:25:27 +0000 (07:25 -0400)
committerJohn Naylor
Sat, 31 Jul 2021 11:25:27 +0000 (07:25 -0400)
Since e6241d8e0, no attribute needs a non-default value of this during
initdb, so let the usual machinery for defaults take care of it.

src/backend/catalog/genbki.pl

index 70987b14876c04d8bb4c518ff0907476d940e9f4..96bf96d9f0328d39ea66a05f09f7cd45bca3c736 100644 (file)
@@ -905,7 +905,6 @@ sub morph_row_for_pgattr
    $row->{attbyval}       = $type->{typbyval};
    $row->{attalign}       = $type->{typalign};
    $row->{attstorage}     = $type->{typstorage};
-   $row->{attcompression} = '\0';
 
    # set attndims if it's an array type
    $row->{attndims} = $type->{typcategory} eq 'A' ? '1' : '0';