Re: Bug in documentation: https://www.postgresql.org/docs/current/spi-examples.html

jian he <jian.universality@gmail.com>

From: jian he <jian.universality@gmail.com>
To: "David G. Johnston" <david.g.johnston@gmail.com>
Cc: Curt Kolovson <ckolovson@gmail.com>, pgsql-docs@lists.postgresql.org
Date: 2023-07-18T00:34:24Z
Lists: pgsql-docs
On Tue, Jul 18, 2023 at 8:26 AM David G. Johnston
<david.g.johnston@gmail.com> wrote:
>
> No INFO messages appear because you did not include a returning clause.  The 1 you passed to the call is immaterial if the query you supply doesn't produce a result set.
>
> David J.
>

indeed. https://www.postgresql.org/docs/current/spi-spi-execute.html


-- 
 I recommend David Deutsch's <<The Beginning of Infinity>>

  Jian



Commits

  1. Doc: fix out-of-date example of SPI usage.

  2. Fix SPI documentation for new handling of ExecutorRun's count parameter.