Silence compilers about extractNotNullColumn()
authorÁlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 12 Nov 2024 10:35:43 +0000 (11:35 +0100)
committerÁlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 12 Nov 2024 10:35:43 +0000 (11:35 +0100)
commitff239c3bf4e8cc8b758450e82ff698100aa8efc0
tree12de1e799c8b6d14b474d7bba7f7979cdb23d6f8
parent3f323eba89fb1ea2220cfe48ea7d9529fffe5cb6
Silence compilers about extractNotNullColumn()

Multiple buildfarm animals warn that a newly added Assert() is
impossible to fail; remove it to avoid the noise.  While at it, use
direct assignment to obtain the value we need, avoiding an unnecessary
memcpy().

(I decided to remove the "pfree" call for the detoasted short-datum;
because this is only used for DDL, it's not problematic to leak such a
small allocation.)

Noted by Tom Lane about 14e87ffa5c54.

Discussion: https://postgr.es/m/3649828.1731083171@sss.pgh.pa.us
src/backend/catalog/pg_constraint.c