aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
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
commit04911fa767fda444c1a883a6ece32a0674cffd03 (patch)
treed2e27022d43ee6d00433bf3fe904fde811589cc3 /contrib/postgres_fdw/sql/postgres_fdw.sql
parent410a0d6bdad283cc086fa05429cb53d178c62a99 (diff)
downloadpostgresql-04911fa767fda444c1a883a6ece32a0674cffd03.tar.gz
postgresql-04911fa767fda444c1a883a6ece32a0674cffd03.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 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions