pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: Richard Guo <guofenglinux@gmail.com>
Cc: James Coleman <jtc331@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: sqlsmith crash incremental sort
Date: Thu, 23 Apr 2020 10:56:42 -0400
Message-ID: <4238.1587653802@sss.pgh.pa.us> (raw)
In-Reply-To: <20200423095700.2iwhfiqjqy7lgzbk@development>
References: <20200413000943.bejni6axj7v4q5rn@development>
	<CAAaqYe8Qt9ASuiphdjQxnMs6J6M2KSg4c=pRi5d=nQMxiSsjKw@mail.gmail.com>
	<20200415144712.wyvpgvsujzzcf2qg@development>
	<CAAaqYe_zyDMYwWWag0nhh_dQwPavsL=xyd7en2W0=1an1E1uPQ@mail.gmail.com>
	<20200417005420.ye342t2nljg4nuhk@development>
	<20403.1587086800@sss.pgh.pa.us>
	<CAAaqYe-SZUZRCYKZBUvrWDv=TTS6p4Xb8wO6cLXDsJhJ2D6K1Q@mail.gmail.com>
	<20200419234729.tglhf2iqlpkkpk3m@development>
	<20200422225919.ucs5xnlgnr5ekhod@development>
	<CAMbWs48HF9f=g+jSmmYBnWub9+Wyg5Xh-FoqAnvqAspue5ypAw@mail.gmail.com>
	<20200423095700.2iwhfiqjqy7lgzbk@development>

Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
> On Thu, Apr 23, 2020 at 03:28:21PM +0800, Richard Guo wrote:
>> A minor comment is that I don't think we need to strip relabel
>> explicitly before calling pull_varnos(), because this function would
>> recurse into T_RelabelType nodes.

> Hmmm, yeah. I think you're right that's unnecessary. I misread the
> walker function, I think.

+1, might as well simplify the code.

>> Also do we need to call bms_free(varnos) for each pathkey here to avoid
>> waste of memory?

> I don't think so. It wouldn't hurt, but we don't do that for other
> pull_vernos calls either AFAICS.

Yeah, the planner is generally pretty profligate of memory, and these
bitmaps aren't likely to be huge anyway.

			regards, tom lane





view thread (25+ messages)

Message-ID: <4238.1587653802@sss.pgh.pa.us>
Permalink:  ../4238.1587653802@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4238.1587653802@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, tomas.vondra@2ndquadrant.com, guofenglinux@gmail.com, jtc331@gmail.com, pryzby@telsasoft.com
  Subject: Re: sqlsmith crash incremental sort
  In-Reply-To: <4238.1587653802@sss.pgh.pa.us>
  References: <20200413000943.bejni6axj7v4q5rn@development> <CAAaqYe8Qt9ASuiphdjQxnMs6J6M2KSg4c=pRi5d=nQMxiSsjKw@mail.gmail.com> <20200415144712.wyvpgvsujzzcf2qg@development> <CAAaqYe_zyDMYwWWag0nhh_dQwPavsL=xyd7en2W0=1an1E1uPQ@mail.gmail.com> <20200417005420.ye342t2nljg4nuhk@development> <20403.1587086800@sss.pgh.pa.us> <CAAaqYe-SZUZRCYKZBUvrWDv=TTS6p4Xb8wO6cLXDsJhJ2D6K1Q@mail.gmail.com> <20200419234729.tglhf2iqlpkkpk3m@development> <20200422225919.ucs5xnlgnr5ekhod@development> <CAMbWs48HF9f=g+jSmmYBnWub9+Wyg5Xh-FoqAnvqAspue5ypAw@mail.gmail.com> <20200423095700.2iwhfiqjqy7lgzbk@development> <4238.1587653802@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