git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 5df64f2) | patch
Change SQLSTATE for event triggers "wrong context" message
Wed, 8 Apr 2015 18:26:50 +0000 (15:26 -0300)
Wed, 8 Apr 2015 18:26:50 +0000 (15:26 -0300)
commit 73206812cd97436cffd8f331dbb09d38a2728162
Change SQLSTATE for event triggers "wrong context" message

When certain event-trigger-only functions are called when not in the
wrong context, they were reporting the "feature not supported" SQLSTATE,
which is somewhat misleading. Create a new custom error code for such
uses instead.

Not backpatched since it may be seen as an undesirable behavioral
change.

Author: Michael Paquier
Discussion: https://www.postgresql.org/message-id/CAB7nPqQ-5NAkHQHh_NOm7FPep37NCiLKwPoJ2Yxb8TDoGgbYYA@mail.gmail.com
src/backend/commands/event_trigger.c diff | blob | blame | history
src/backend/utils/errcodes.txt diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /