postgresql/src/backend
Tom Lane 1424c7abc4 Don't throw an error if a queued AFTER trigger no longer exists.
afterTriggerInvokeEvents and AfterTriggerExecute have always
treated it as an error if the trigger OID mentioned in a queued
after-trigger event can't be found.  However, that fails to
account for the edge case where the trigger's been dropped in
the current transaction since queueing the event.  There seems
no very good reason to disallow that case, so instead silently
do nothing if the trigger OID can't be found.

This does give up a little bit of bug-detection ability, but I don't
recall that these error messages have ever actually revealed a bug,
so it seems mostly theoretical.  Alternatives such as marking
pending events DONE at the time of dropping a trigger would be
complicated and perhaps introduce bugs of their own.

Per bug #18517 from Alexander Lakhin.  Back-patch to all
supported branches.

Discussion: https://postgr.es/m/18517-af2d19882240902c@postgresql.org
2024-06-20 14:21:36 -04:00
..
access Fix insertion of SP-GiST REDIRECT tuples during REINDEX CONCURRENTLY. 2024-06-17 14:30:59 -04:00
backup Skip .DS_Store files in server side utils 2024-02-13 13:47:12 +01:00
bootstrap Process session_preload_libraries within InitPostgres's transaction. 2022-07-25 10:27:43 -04:00
catalog Clean out column-level pg_init_privs entries when dropping tables. 2024-06-14 16:20:35 -04:00
commands Don't throw an error if a queued AFTER trigger no longer exists. 2024-06-20 14:21:36 -04:00
executor Fix behavior of stable functions called from a CALL's argument list. 2024-06-07 13:27:26 -04:00
foreign Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:40 +09:00
jit Fix illegal attribute propagation in LLVM JIT. 2024-04-10 12:14:04 +12:00
lib Fix lock assertions in dshash.c. 2022-07-11 16:01:22 +12:00
libpq Disconnect if socket cannot be put into non-blocking mode 2024-03-12 10:18:50 +02:00
main Fix outdated --help message for postgres -f 2022-08-15 13:37:32 +09:00
nodes Handle WindowClause.runCondition in tree walker/mutator functions. 2024-01-10 13:36:34 -05:00
optimizer Fix possible Assert failure in cost_memoize_rescan 2024-06-19 10:21:26 +12:00
parser Fix handling of extended expression statistics in CREATE TABLE LIKE. 2024-05-22 17:54:17 -04:00
partitioning Fix creation of partition descriptor during concurrent detach 2024-06-11 11:38:45 +02:00
po Translation updates 2024-05-06 12:10:46 +02:00
port Close socket in case of errors in setting non-blocking 2024-01-17 11:24:11 +01:00
postmaster Avoid deadlock during orphan temp table removal. 2024-04-02 14:59:04 -04:00
regex Avoid character classification in regex escape parsing. 2023-04-21 08:20:17 -07:00
replication Fix the missing table sync due to improper invalidation handling. 2024-04-25 10:33:04 +05:30
rewrite Disallow converting a table to a view within an outer SQL command. 2024-04-30 15:22:55 -04:00
snowball In the Snowball dictionary, don't try to stem excessively-long words. 2022-08-31 10:42:05 -04:00
statistics Fix incorrectly reported stats kind in "can't happen" ERROR 2024-03-05 16:18:19 +13:00
storage Fix documentation about DROP DATABASE FORCE process termination rights. 2024-05-16 14:11:13 -07:00
tcop Be more rigorous about local variables in PostgresMain(). 2023-07-10 12:14:34 -04:00
tsearch Limit to_tsvector_byid's initial array allocation to something sane. 2023-09-25 11:50:28 -04:00
utils Fix parsing of ignored operators in websearch_to_tsquery(). 2024-06-13 20:35:03 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Move basebackup code to new directory src/backend/backup 2022-08-10 14:03:09 -04:00
nls.mk Translation updates 2023-11-06 13:16:22 +01:00