Remove useless code
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 1 Jul 2024 06:50:29 +0000 (08:50 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 1 Jul 2024 06:50:29 +0000 (08:50 +0200)
commite26d313bad92e71e2b59cc2e81870bf6d750de1f
tree33aa11ee33ee8885a877aceeb67d1f49dc6f1ebf
parentda2aeba8f53379e84a8f3f656b6c2ffe5878eff5
Remove useless code

BuildDescForRelation() goes out of its way to fill in
->constr->has_not_null, but that value is not used for anything later,
so this code can all be removed.  Note that BuildDescForRelation()
doesn't make any effort to fill in the rest of ->constr, so there is
no claim that that structure is completely filled in.

Reviewed-by: Tomasz Rybak <tomasz.rybak@post.pl>
Discussion: https://www.postgresql.org/message-id/flat/a368248e-69e4-40be-9c07-6c3b5880b0a6@eisentraut.org
src/backend/commands/tablecmds.c