Re: PL/Tcl - examples not working - Mailing list pgsql-docs

From Tom Lane
Subject Re: PL/Tcl - examples not working
Date
Msg-id 2026986.1617968031@sss.pgh.pa.us
Whole thread Raw
In response to PL/Tcl - examples not working  (PG Doc comments form <noreply@postgresql.org>)
Responses Re: PL/Tcl - examples not working  (Maksym Zinchenko <siqsuruq@gmail.com>)
List pgsql-docs
PG Doc comments form <noreply@postgresql.org> writes:
> Example on this page is not working
> https://www.postgresql.org/docs/13/pltcl-trigger.html
> Gives ERROR:  bind message supplies 1 parameters, but prepared statement ""
> requires 0

Works fine for me, when copied-and-pasted into psql.

The error message you quote looks a bit like whatever client-side
code you're using has decided that the $1 references in the function
body are query parameters.  They are not.  The function body is a
dollar-quoted string literal and should be sent unmodified.

            regards, tom lane



pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: PL/Tcl - examples not working
Next
From: Maksym Zinchenko
Date:
Subject: Re: PL/Tcl - examples not working