mirror of
https://github.com/postgres/postgres.git
synced 2026-06-11 01:30:11 -04:00
Fix wrong datum conversion for subretentionactive in CreateSubscription.
Use BoolGetDatum() instead of Int32GetDatum() when storing the boolean
subretentionactive column in pg_subscription. This was an oversight in
a850be2fe6.
Author: Lakshmi N <lakshmin.jhs@gmail.com>
Reviewed-by: Nisha Moond <nisha.moond412@gmail.com>
Discussion: https://postgr.es/m/CA+3i_M98-XjE-_fw0p+8xOnw64y2_YLtJfcwvCfsVMn-z2ZjGg@mail.gmail.com
This commit is contained in:
parent
832e220d99
commit
7424aac088
1 changed files with 1 additions and 1 deletions
|
|
@ -796,7 +796,7 @@ CreateSubscription(ParseState *pstate, CreateSubscriptionStmt *stmt,
|
|||
values[Anum_pg_subscription_submaxretention - 1] =
|
||||
Int32GetDatum(opts.maxretention);
|
||||
values[Anum_pg_subscription_subretentionactive - 1] =
|
||||
Int32GetDatum(opts.retaindeadtuples);
|
||||
BoolGetDatum(opts.retaindeadtuples);
|
||||
values[Anum_pg_subscription_subserver - 1] = ObjectIdGetDatum(serverid);
|
||||
if (!OidIsValid(serverid))
|
||||
values[Anum_pg_subscription_subconninfo - 1] =
|
||||
|
|
|
|||
Loading…
Reference in a new issue