aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-07-18 11:59:39 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-07-18 11:59:39 -0400
commite6e451c1d7e5bc70f0f3a63cbf06eb298f56a76e (patch)
treef6f37033688a5ec0b2e93c5088d3f341ab1f9a8b /src/bin/psql/help.c
parent926aa6d11bde9f0b6b0e45ca5a26646aacac8be3 (diff)
downloadpostgresql-e6e451c1d7e5bc70f0f3a63cbf06eb298f56a76e.tar.gz
postgresql-e6e451c1d7e5bc70f0f3a63cbf06eb298f56a76e.zip
Doc: fix out-of-date example of SPI usage.
The "count" argument of SPI_exec() only limits execution when the query is actually returning rows. This was not the case before PG 9.0, so this example was correct when written; but we missed updating it in commit 2ddc600f8. Extend the example to show the behavior both with and without RETURNING. While here, improve the commentary and markup for the rest of the example. David G. Johnston and Tom Lane, per report from Curt Kolovson. Back-patch to all supported branches. Discussion: https://postgr.es/m/CANhYJV6HWtgz_qjx_APfK0PAgLUzY-2vjLuj7i_o=TZF1LAQew@mail.gmail.com
Diffstat (limited to 'src/bin/psql/help.c')
0 files changed, 0 insertions, 0 deletions