pgsql: Remove unused arg and dead code in set_attnotnull()

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove unused arg and dead code in set_attnotnull()
Date: 2026-08-03 11:53:47
Message-ID: E1wqrEp-000000000L2-3gu0@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove unused arg and dead code in set_attnotnull()

The is_valid parameter was never referenced in the function body, and
the 'thisatt' local variable is set but never used. Remove both.

Oversight in a379061a22a8.

Author: Sami Imseih <samimseih(at)gmail(dot)com>
Backpatch-through: 18
Discussion: https://postgr.es/m/CAA5RZ0tHnvSrfUy4jWJchjvkL_aJe0hCnZpMsFRdLrSxCne5qQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/36f7330b8b2238c2093d7eac521f996b33e66121

Modified Files
--------------
src/backend/commands/tablecmds.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2026-08-03 16:38:16 pgsql: Undo inadvertent loosening of archive filename checking.
Previous Message Michael Paquier 2026-08-03 11:06:18 pgsql: Add dshash_get_dsa_area(), able to retrieve the DSA area of a ds