postgres.git / summary / log / commit / refs

commit    843072e1b2c3e329d2040bb266dc4b9222d3db5f
Author:   Alvaro Herrera <alvherre@alvh.no-ip.org>
Date:     Fri Dec 23 12:21:41 2022 +0000
First released in: 16.0, 13.10, 14.7, 15.2

    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/81e36ac17dc80489e74dc5b6914afa6ccdb1a99d.camel@cybertec.at


doc/src/sgml/event-trigger.sgml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/event-trigger.sgml b/doc/src/sgml/event-trigger.sgml index 9c66f97b0f6..a76e8ac09be 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(); } [parent: d4fea2e89d44]