pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt
5+ messages / 1 participants
[nested] [flat]

* pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt
@ 2026-10-05 19:45 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2026-10-05 19:45 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Handle operator-stack-overflow errors softly in tsquery and ltxtquery.

When we converted these types' input functions to report errors
through the soft-error mechanism, we missed that stack-overflow
errors can be triggered through bad user input.  Convert those
to be reported softly, too.

Bug: #19745
Reported-by: Ke <kehan5800@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/19745-39cd7b93a505f9a9@postgresql.org
Backpatch-through: 16

Branch
------
master

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

Modified Files
--------------
contrib/ltree/ltxtquery_io.c    |  8 ++++----
src/backend/utils/adt/tsquery.c | 14 +++++++++-----
2 files changed, 13 insertions(+), 9 deletions(-)



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

* pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt
@ 2026-10-05 19:45 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2026-10-05 19:45 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Handle operator-stack-overflow errors softly in tsquery and ltxtquery.

When we converted these types' input functions to report errors
through the soft-error mechanism, we missed that stack-overflow
errors can be triggered through bad user input.  Convert those
to be reported softly, too.

Bug: #19745
Reported-by: Ke <kehan5800@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/19745-39cd7b93a505f9a9@postgresql.org
Backpatch-through: 16

Branch
------
REL_19_STABLE

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

Modified Files
--------------
contrib/ltree/ltxtquery_io.c    |  8 ++++----
src/backend/utils/adt/tsquery.c | 14 +++++++++-----
2 files changed, 13 insertions(+), 9 deletions(-)



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

* pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt
@ 2026-10-05 19:45 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2026-10-05 19:45 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Handle operator-stack-overflow errors softly in tsquery and ltxtquery.

When we converted these types' input functions to report errors
through the soft-error mechanism, we missed that stack-overflow
errors can be triggered through bad user input.  Convert those
to be reported softly, too.

Bug: #19745
Reported-by: Ke <kehan5800@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/19745-39cd7b93a505f9a9@postgresql.org
Backpatch-through: 16

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/90cc09f57f9f5bdee3a2d44ed21760d90b2616ea

Modified Files
--------------
contrib/ltree/ltxtquery_io.c    |  8 ++++----
src/backend/utils/adt/tsquery.c | 14 +++++++++-----
2 files changed, 13 insertions(+), 9 deletions(-)



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

* pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt
@ 2026-10-05 19:45 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2026-10-05 19:45 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Handle operator-stack-overflow errors softly in tsquery and ltxtquery.

When we converted these types' input functions to report errors
through the soft-error mechanism, we missed that stack-overflow
errors can be triggered through bad user input.  Convert those
to be reported softly, too.

Bug: #19745
Reported-by: Ke <kehan5800@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/19745-39cd7b93a505f9a9@postgresql.org
Backpatch-through: 16

Branch
------
REL_17_STABLE

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

Modified Files
--------------
contrib/ltree/ltxtquery_io.c    |  8 ++++----
src/backend/utils/adt/tsquery.c | 14 +++++++++-----
2 files changed, 13 insertions(+), 9 deletions(-)



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

* pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt
@ 2026-10-05 19:45 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2026-10-05 19:45 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Handle operator-stack-overflow errors softly in tsquery and ltxtquery.

When we converted these types' input functions to report errors
through the soft-error mechanism, we missed that stack-overflow
errors can be triggered through bad user input.  Convert those
to be reported softly, too.

Bug: #19745
Reported-by: Ke <kehan5800@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/19745-39cd7b93a505f9a9@postgresql.org
Backpatch-through: 16

Branch
------
REL_16_STABLE

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

Modified Files
--------------
contrib/ltree/ltxtquery_io.c    |  8 ++++----
src/backend/utils/adt/tsquery.c | 14 +++++++++-----
2 files changed, 13 insertions(+), 9 deletions(-)



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


end of thread, other threads:[~2026-10-05 19:45 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-10-05 19:45 pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt Tom Lane <tgl@sss.pgh.pa.us>
2026-10-05 19:45 pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt Tom Lane <tgl@sss.pgh.pa.us>
2026-10-05 19:45 pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt Tom Lane <tgl@sss.pgh.pa.us>
2026-10-05 19:45 pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt Tom Lane <tgl@sss.pgh.pa.us>
2026-10-05 19:45 pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt 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