pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: LLVM jit and window functions on a temporary table
Date: Sat, 21 Jul 2018 16:33:08 -0400
Message-ID: <17175.1532205188@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+q6zcUq2VKFBwgk42Qg2hz-=62c1cB1MCBV6Ocwtj__9=RWtQ@mail.gmail.com>
References: <CA+q6zcUq2VKFBwgk42Qg2hz-=62c1cB1MCBV6Ocwtj__9=RWtQ@mail.gmail.com>

Dmitry Dolgov <9erthalion6@gmail.com> writes:
> While testing PostgreSQL instance with enabled jit I found out another
> interesting problem:
> ...
> gdb shows that in tuplestore_select_read_pointer somehow the value of ptr is -1

Is that current HEAD, or back a bit?  We just fixed a non-JIT-related
bug with similar symptoms:

Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [ff4f88916] 2018-07-11 12:07:20 -0400
Branch: REL_11_STABLE [8893d48e7] 2018-07-11 12:07:21 -0400

    Fix bugs with degenerate window ORDER BY clauses in GROUPS/RANGE mode.

and your query does look like it matches that, since the f1=f2 clause
renders the ORDER BY degenerate.

			regards, tom lane




view thread (3+ messages)  latest in thread

Message-ID: <17175.1532205188@sss.pgh.pa.us>
Permalink:  ../17175.1532205188@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17175.1532205188@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, 9erthalion6@gmail.com
  Subject: Re: LLVM jit and window functions on a temporary table
  In-Reply-To: <17175.1532205188@sss.pgh.pa.us>
  References: <CA+q6zcUq2VKFBwgk42Qg2hz-=62c1cB1MCBV6Ocwtj__9=RWtQ@mail.gmail.com> <17175.1532205188@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