pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix missing error handling in plperl_sv_to_literal().
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix missing error handling in plperl_sv_to_literal().
@ 2026-11-10 21:33 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2026-11-10 21:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix missing error handling in plperl_sv_to_literal().

This function should have logic to trap Postgres errors and
convert them to Perl croak(), but it was missing that.
We'd somehow managed not to notice, even though the case of
an error was tested, until commits daafcbd11 et al added more
complexity to the interaction of Postgres and Perl errors.
Even then it mostly worked, but a few PPC64 buildfarm animals
are showing failures that trace to this.  Alexander Lakhin
then found that the crash is repeatable on other platforms
if you repeat the test a few times.

This patch basically just copies-and-pastes the error handling
from plperl_spi_exec() into plperl_sv_to_literal().

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3d342deeb433060dbea02fdd276656a5563275d5

Modified Files
--------------
src/pl/plperl/expected/plperl_util.out | 12 ++++-
src/pl/plperl/plperl.c                 | 88 ++++++++++++++++++++++++++--------
src/pl/plperl/sql/plperl_util.sql      |  4 ++
3 files changed, 83 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix missing error handling in plperl_sv_to_literal().
@ 2026-11-10 21:33 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2026-11-10 21:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix missing error handling in plperl_sv_to_literal().

This function should have logic to trap Postgres errors and
convert them to Perl croak(), but it was missing that.
We'd somehow managed not to notice, even though the case of
an error was tested, until commits daafcbd11 et al added more
complexity to the interaction of Postgres and Perl errors.
Even then it mostly worked, but a few PPC64 buildfarm animals
are showing failures that trace to this.  Alexander Lakhin
then found that the crash is repeatable on other platforms
if you repeat the test a few times.

This patch basically just copies-and-pastes the error handling
from plperl_spi_exec() into plperl_sv_to_literal().

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5e4b9e53ed883eac02279a728245165be0c9607a

Modified Files
--------------
src/pl/plperl/expected/plperl_util.out | 12 ++++-
src/pl/plperl/plperl.c                 | 88 ++++++++++++++++++++++++++--------
src/pl/plperl/sql/plperl_util.sql      |  4 ++
3 files changed, 83 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix missing error handling in plperl_sv_to_literal().
@ 2026-11-10 21:33 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2026-11-10 21:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix missing error handling in plperl_sv_to_literal().

This function should have logic to trap Postgres errors and
convert them to Perl croak(), but it was missing that.
We'd somehow managed not to notice, even though the case of
an error was tested, until commits daafcbd11 et al added more
complexity to the interaction of Postgres and Perl errors.
Even then it mostly worked, but a few PPC64 buildfarm animals
are showing failures that trace to this.  Alexander Lakhin
then found that the crash is repeatable on other platforms
if you repeat the test a few times.

This patch basically just copies-and-pastes the error handling
from plperl_spi_exec() into plperl_sv_to_literal().

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f1b267e784135c74cfd4144902fd41ceb1cda0a4

Modified Files
--------------
src/pl/plperl/expected/plperl_util.out | 12 ++++-
src/pl/plperl/plperl.c                 | 88 ++++++++++++++++++++++++++--------
src/pl/plperl/sql/plperl_util.sql      |  4 ++
3 files changed, 83 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix missing error handling in plperl_sv_to_literal().
@ 2026-11-10 21:33 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2026-11-10 21:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix missing error handling in plperl_sv_to_literal().

This function should have logic to trap Postgres errors and
convert them to Perl croak(), but it was missing that.
We'd somehow managed not to notice, even though the case of
an error was tested, until commits daafcbd11 et al added more
complexity to the interaction of Postgres and Perl errors.
Even then it mostly worked, but a few PPC64 buildfarm animals
are showing failures that trace to this.  Alexander Lakhin
then found that the crash is repeatable on other platforms
if you repeat the test a few times.

This patch basically just copies-and-pastes the error handling
from plperl_spi_exec() into plperl_sv_to_literal().

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9d9157cd94ae3269c11bd3ddaf2cfef6aa10f82f

Modified Files
--------------
src/pl/plperl/expected/plperl_util.out | 12 ++++-
src/pl/plperl/plperl.c                 | 88 ++++++++++++++++++++++++++--------
src/pl/plperl/sql/plperl_util.sql      |  4 ++
3 files changed, 83 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix missing error handling in plperl_sv_to_literal().
@ 2026-11-10 21:33 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2026-11-10 21:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix missing error handling in plperl_sv_to_literal().

This function should have logic to trap Postgres errors and
convert them to Perl croak(), but it was missing that.
We'd somehow managed not to notice, even though the case of
an error was tested, until commits daafcbd11 et al added more
complexity to the interaction of Postgres and Perl errors.
Even then it mostly worked, but a few PPC64 buildfarm animals
are showing failures that trace to this.  Alexander Lakhin
then found that the crash is repeatable on other platforms
if you repeat the test a few times.

This patch basically just copies-and-pastes the error handling
from plperl_spi_exec() into plperl_sv_to_literal().

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3b122c1aa5cee79848260fe9e31640aab365a69e

Modified Files
--------------
src/pl/plperl/expected/plperl_util.out | 12 ++++-
src/pl/plperl/plperl.c                 | 88 ++++++++++++++++++++++++++--------
src/pl/plperl/sql/plperl_util.sql      |  4 ++
3 files changed, 83 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix missing error handling in plperl_sv_to_literal().
@ 2026-11-10 21:33 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2026-11-10 21:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix missing error handling in plperl_sv_to_literal().

This function should have logic to trap Postgres errors and
convert them to Perl croak(), but it was missing that.
We'd somehow managed not to notice, even though the case of
an error was tested, until commits daafcbd11 et al added more
complexity to the interaction of Postgres and Perl errors.
Even then it mostly worked, but a few PPC64 buildfarm animals
are showing failures that trace to this.  Alexander Lakhin
then found that the crash is repeatable on other platforms
if you repeat the test a few times.

This patch basically just copies-and-pastes the error handling
from plperl_spi_exec() into plperl_sv_to_literal().

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/209e8c88dcef5ed1c3105f52c04cfdbf83653337

Modified Files
--------------
src/pl/plperl/expected/plperl_util.out | 12 ++++-
src/pl/plperl/plperl.c                 | 88 ++++++++++++++++++++++++++--------
src/pl/plperl/sql/plperl_util.sql      |  4 ++
3 files changed, 83 insertions(+), 21 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2026-11-10 21:33 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 21:33 pgsql: Fix missing error handling in plperl_sv_to_literal(). Tom Lane <tgl@sss.pgh.pa.us>
2026-11-10 21:33 pgsql: Fix missing error handling in plperl_sv_to_literal(). Tom Lane <tgl@sss.pgh.pa.us>
2026-11-10 21:33 pgsql: Fix missing error handling in plperl_sv_to_literal(). Tom Lane <tgl@sss.pgh.pa.us>
2026-11-10 21:33 pgsql: Fix missing error handling in plperl_sv_to_literal(). Tom Lane <tgl@sss.pgh.pa.us>
2026-11-10 21:33 pgsql: Fix missing error handling in plperl_sv_to_literal(). Tom Lane <tgl@sss.pgh.pa.us>
2026-11-10 21:33 pgsql: Fix missing error handling in plperl_sv_to_literal(). 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