Remove redundant assignment of a variable in function AlterPublicationTables

From: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Peter Smith <smithpb2250(at)gmail(dot)com>, Kirill Reshke <reshkekirill(at)gmail(dot)com>
Subject: Remove redundant assignment of a variable in function AlterPublicationTables
Date: 2025-08-20 08:41:14
Message-ID: CANhcyEXHiCbk2q8=bq3boQDyc8ac9fjgK-kkp5PdTYLcAOq80Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While working on the thread [1]. We encountered that in the
'AlterPublicationTables' function, the assignment 'isnull = true' is
redundant. This assignment is not required, and the variable will be
reassigned before use.
I have attached a patch to address this.

[1]: https://www.postgresql.org/message-id/CALdSSPgiDj8S8POf_6kiUkVrt9-EqYmn%2B2ahDqpdBpyteeAz-Q%40mail.gmail.com

Thanks,
Shlok Kyal

Attachment Content-Type Size
v1-0001-Remove-redundant-assignment-of-isnull-variable.patch application/x-patch 964 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Antonin Houska 2025-08-20 08:53:13 Re: Adding REPACK [concurrently]
Previous Message Antonin Houska 2025-08-20 08:33:49 Re: Adding REPACK [concurrently]