Hi hackers, In CreateSubscription(), the subretentionactive catalog column (declared as bool in pg_subscription.h) is populated using Int32GetDatum() instead of BoolGetDatum():
This writes 4 bytes into a 1-byte bool Datum. It is inconsistent with the ALTER SUBSCRIPTION path which correctly uses BoolGetDatum(). The attached patch fixes this to use BoolGetDatum(), matching both the catalog definition and the ALTER path. Regards, Lakshmi
subretentionactive-int32-to-bool.patch
Description: Binary data
