agora inbox for pgsql-docs@postgresql.org
help / color / mirror / Atom feedFrom: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: glauciobb@gmail.com
Subject: Error in example
Date: Wed, 19 Dec 2018 12:33:53 +0000
Message-ID: <154522283371.15419.15167411691473730460@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/10/spi-examples.html
Description:
Dear,
In the example of how to use SPI in the following link
https://www.postgresql.org/docs/10/spi-examples.html
The parameters numbers in the follow lines are wrong.
/ * Convert a text object to a C string * /
command = text_to_cstring (PG_GETARG_TEXT_PP (1));
cnt = PG_GETARG_INT32 (2);
They should be as follow:
/ * Convert a text object to a C string * /
command = text_to_cstring (PG_GETARG_TEXT_PP (0));
cnt = PG_GETARG_INT32 (1);
Best regards,
Gláucio
view thread (6+ messages) latest in thread
Message-ID: <154522283371.15419.15167411691473730460@wrigleys.postgresql.org>
Permalink: ../154522283371.15419.15167411691473730460@wrigleys.postgresql.org/
Also on: postgresql.org/message-id/154522283371.15419.15167411691473730460@wrigleys.postgresql.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, glauciobb@gmail.com
Subject: Re: Error in example
In-Reply-To: <154522283371.15419.15167411691473730460@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox