Fix overly large values/nulls arrays
authorDavid Rowley <drowley@postgresql.org>
Sun, 29 Dec 2024 10:57:43 +0000 (23:57 +1300)
committerDavid Rowley <drowley@postgresql.org>
Sun, 29 Dec 2024 10:57:43 +0000 (23:57 +1300)
commiteb53ff5517e50018539747d75a02d493abc2d232
tree983761cced6e5c6a2a1c5b997dd67a0c12de1ff4
parent508a97ee4984597ea60c383f52adefd47178189f
Fix overly large values/nulls arrays

These arrays were sized with Natts_pg_trigger (19) when they should have
been sized with Natts_pg_event_trigger (7).  We'd better fix this as
it's clearly a mistake and it could become problematic if
pg_event_trigger were to gain a dozen or so more columns in the future.

No backpatch as there's no actual bug and the column count on those
tables isn't going to change in released versions.

Author: Xin Zhang <zhanghien@qq.com>
Discussion: https://postgr.es/m/tencent_05AD0FB321A414EC3661204D2102AA6EF605@qq.com
src/backend/commands/event_trigger.c