pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org, Robert Haas <robertmhaas@gmail.com>
Subject: Re: CLOBBER_CACHE_ALWAYS regression instability
Date: Sun, 05 Apr 2020 15:04:30 -0400
Message-ID: <32137.1586113470@sss.pgh.pa.us> (raw)
In-Reply-To: <20200405185749.5pi3k6w2jd2x3kgu@alap3.anarazel.de>
References: <30675.1586111599@sss.pgh.pa.us>
	<20200405185749.5pi3k6w2jd2x3kgu@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> Another avenue could be to make ParseFuncOrColumn et al use less stack,
> and hope that it avoids the problem. It's a bit insane that we use this
> much.

That would only reduce the chance of getting a stack overflow there,
and not by that much, especially not for a CLOBBER_CACHE_ALWAYS animal
which is going to be doing catalog accesses inside there too.

> We don't have to go there in this case, but I've before wondered about
> adding helpers that use an on-stack var for small allocations, and falls
> back to palloc otherwise. Something boiling down to:

Seems like that adds a lot of potential for memory leakage?

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <32137.1586113470@sss.pgh.pa.us>
Permalink:  ../32137.1586113470@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32137.1586113470@sss.pgh.pa.us

 · 

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, robertmhaas@gmail.com
  Subject: Re: CLOBBER_CACHE_ALWAYS regression instability
  In-Reply-To: <32137.1586113470@sss.pgh.pa.us>
  References: <30675.1586111599@sss.pgh.pa.us> <20200405185749.5pi3k6w2jd2x3kgu@alap3.anarazel.de> <32137.1586113470@sss.pgh.pa.us>

* 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