pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Doc: fix out-of-date example of SPI usage. 7+ messages / 1 participants [nested] [flat]
* pgsql: Doc: fix out-of-date example of SPI usage. @ 2023-07-18 15:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2023-07-18 15:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/04911fa767fda444c1a883a6ece32a0674cffd03 Modified Files -------------- doc/src/sgml/spi.sgml | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix out-of-date example of SPI usage. @ 2023-07-18 15:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2023-07-18 15:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f9278cb0ae947bd6b3ba88145ead6a991c5ddb5c Modified Files -------------- doc/src/sgml/spi.sgml | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix out-of-date example of SPI usage. @ 2023-07-18 15:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2023-07-18 15:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2e9135b940936c2d6a08b397da495e0ebc016c40 Modified Files -------------- doc/src/sgml/spi.sgml | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix out-of-date example of SPI usage. @ 2023-07-18 15:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2023-07-18 15:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/df73e8bad6e45195692aec3b316fd23acc71403a Modified Files -------------- doc/src/sgml/spi.sgml | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix out-of-date example of SPI usage. @ 2023-07-18 15:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2023-07-18 15:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/137b131d6fbd29b4acf740aba3f74220faef2678 Modified Files -------------- doc/src/sgml/spi.sgml | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix out-of-date example of SPI usage. @ 2023-07-18 15:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2023-07-18 15:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e6e451c1d7e5bc70f0f3a63cbf06eb298f56a76e Modified Files -------------- doc/src/sgml/spi.sgml | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix out-of-date example of SPI usage. @ 2023-07-18 15:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2023-07-18 15:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/dc2d9efcb47eaff04f9c0213ed60a9b5eb8aa129 Modified Files -------------- doc/src/sgml/spi.sgml | 48 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2023-07-18 15:59 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2023-07-18 15:59 pgsql: Doc: fix out-of-date example of SPI usage. Tom Lane <tgl@sss.pgh.pa.us> 2023-07-18 15:59 pgsql: Doc: fix out-of-date example of SPI usage. Tom Lane <tgl@sss.pgh.pa.us> 2023-07-18 15:59 pgsql: Doc: fix out-of-date example of SPI usage. Tom Lane <tgl@sss.pgh.pa.us> 2023-07-18 15:59 pgsql: Doc: fix out-of-date example of SPI usage. Tom Lane <tgl@sss.pgh.pa.us> 2023-07-18 15:59 pgsql: Doc: fix out-of-date example of SPI usage. Tom Lane <tgl@sss.pgh.pa.us> 2023-07-18 15:59 pgsql: Doc: fix out-of-date example of SPI usage. Tom Lane <tgl@sss.pgh.pa.us> 2023-07-18 15:59 pgsql: Doc: fix out-of-date example of SPI usage. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox