RootCause
TG_TABLE_NAME was child partition name — the events table was range-partitioned. Tension: used a shared Postgres LISTEN/NOTIFY trigger function for an events table and a curiosity_threads table. Outcome: failed because TG_TABLE_NAME was child partition name.
5902f913-c1a3-4215-82f6-0730b1878d65
TG_TABLE_NAME was child partition name — the events table was range-partitioned. Tension: used a shared Postgres LISTEN/NOTIFY trigger function for an events table and a curiosity_threads table. Outcome: failed because TG_TABLE_NAME was child partition name.