pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Back-patch addition of stack overflow and interrupt checks for l
Date: Tue, 31 Mar 2020 15:38:22 +0000
Message-ID: <E1jJIy6-000267-Kx@gemulon.postgresql.org> (raw)

Back-patch addition of stack overflow and interrupt checks for lquery.

Experimentation shows that it's not hard at all to drive the
old implementation of "ltree ~ lquery" match to stack overflow,
so throw in a check_stack_depth() call, as I just did in HEAD.

I wasn't able to make it take a long time, because all the
pathological cases I tried hit stack overflow first; but
I bet there are some others that do take a long time, so add
CHECK_FOR_INTERRUPTS() too.

Discussion: https://postgr.es/m/CAP_rww=waX2Oo6q+MbMSiZ9ktdj6eaJj0cQzNu=Ry2cCDij5fw@mail.gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8b902e438608c2ef7d3875a74a81e66735fab358

Modified Files
--------------
contrib/ltree/lquery_op.c | 7 +++++++
1 file changed, 7 insertions(+)



view thread (5+ messages)  latest in thread

Message-ID: <E1jJIy6-000267-Kx@gemulon.postgresql.org>
Permalink:  ../E1jJIy6-000267-Kx@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jJIy6-000267-Kx@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Back-patch addition of stack overflow and interrupt checks for l
  In-Reply-To: <E1jJIy6-000267-Kx@gemulon.postgresql.org>
  References: <E1jJIy6-000267-Kx@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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