Re: [COMMITTERS] pgsql: Avoid GatherMerge crash when there are no workers.

From: Rushabh Lathia <rushabh(dot)lathia(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Avoid GatherMerge crash when there are no workers.
Date: 2017-04-03 05:26:16
Message-ID: CAGPqQf2xxFfDNGTHtP536mpQM=CYmaQveiMKxJ_uvBr+J8fECA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Sat, Apr 1, 2017 at 7:58 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:

> On Fri, Mar 31, 2017 at 10:26 PM, Andres Freund <andres(at)anarazel(dot)de>
> wrote:
> > Hi,
> >
> > On 2017-04-01 01:22:14 +0000, Robert Haas wrote:
> >> Avoid GatherMerge crash when there are no workers.
> >
> > I think the gather merge code needs a bit more test coverage (sorry to
> > make this a larger theme today). As shown by
> > https://coverage.postgresql.org/src/backend/executor/
> nodeGatherMerge.c.gcov.html
> > we don't actually merge anything (heap_compare_slots is not exercised).
>
> Sounds reasonable.
>

I am working on this and will submit the patch soon.

>
> > I btw also wonder if it's good that we have a nearly identical copy of
> > heap_compare_slots and a bunch of the calling code in both
> > nodeMergeAppend.c and nodeGatherMerge.c. On the other hand, it's not
> > heavily envolving code.
>
> Yeah, I don't know. We could alternatively try to move that to some
> common location and merge the two implementations. I'm not sure
> exactly where, though.
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

--
Rushabh Lathia

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Rushabh Lathia 2017-04-03 07:26:36 Re: [COMMITTERS] pgsql: Avoid GatherMerge crash when there are no workers.
Previous Message Tom Lane 2017-04-02 23:19:21 pgsql: Remove reinvention of stringify macro.

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2017-04-03 05:46:08 Re: Logical decoding on standby
Previous Message Tsunakawa, Takayuki 2017-04-03 04:56:45 Re: Supporting huge pages on Windows