summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2022-12-23 12:21:41 +0000
committerAlvaro Herrera2022-12-23 12:21:41 +0000
commit7a310338f4dd3195376477d502e93fba5f165769 (patch)
tree3d3095f908662c4b8090ce547b4fcf9d73710c88
parentbbfdf7180de85f9e7e995ba00dddc58452b3ba4b (diff)
Fix event trigger example
Commit 2f9661311b changed command tags from strings to numbers, but forgot to adjust the code in the event trigger example, which consequently failed to compile. While fixing that, improve the indentation to adhere to pgindent style. Backpatch to v13, where the change was introduced. Author: Laurenz Albe Discussion: https://postgr.es/m/[email protected]
-rw-r--r--doc/src/sgml/event-trigger.sgml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/sgml/event-trigger.sgml b/doc/src/sgml/event-trigger.sgml
index f1235a2c9f7..3b6a5361b34 100644
--- a/doc/src/sgml/event-trigger.sgml
+++ b/doc/src/sgml/event-trigger.sgml
@@ -1194,8 +1194,9 @@ noddl(PG_FUNCTION_ARGS)
trigdata = (EventTriggerData *) fcinfo->context;
ereport(ERROR,
- (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
- errmsg("command \"%s\" denied", trigdata->tag)));
+ (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
+ errmsg("command \"%s\" denied",
+ GetCommandTagName(trigdata->tag))));
PG_RETURN_NULL();
}