Re: [PATCH] Negative Transition Aggregate Functions (WIP)

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Erik Rijkers <er(at)xs4all(dot)nl>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Negative Transition Aggregate Functions (WIP)
Date: 2014-01-03 06:45:19
Message-ID: CAApHDvprQnWOFjaD-cNhcQdL9M1ANXtFOywc3A2ZCcDvEAqdDQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jan 3, 2014 at 12:23 PM, Erik Rijkers <er(at)xs4all(dot)nl> wrote:

> On Fri, January 3, 2014 00:09, Erik Rijkers wrote:
>
>
> > connection to server was lost
> >
> > So, to repeat, this runs fine on a server compiled for speed.
> >
>
> I forgot to append the log messages:
>
> 2014-01-03 00:19:17.073 CET 14054 LOG: database system is ready to accept
> connections
> TRAP: FailedAssertion("!(!((bool) ((invtransfn_oid) != ((Oid) 0))))",
> File: "parse_agg.c", Line: 1255)
> 2014-01-03 00:19:29.605 CET 14054 LOG: server process (PID 14143) was
> terminated by signal 6: Aborted
> 2014-01-03 00:19:29.605 CET 14054 DETAIL: Failed process was running:
> SELECT depname, empno, salary, sum(salary) OVER
> (PARTITION BY depname) FROM empsalary ORDER BY depname, salary;
> 2014-01-03 00:19:29.605 CET 14054 LOG: terminating any other active
> server processes
> 2014-01-03 00:19:29.607 CET 14054 LOG: all server processes terminated;
> reinitializing
> etc. etc.
>
>
>
hmm, yeah, compiling and testing a build with assets enabled... That's a
good idea!
I probably should have tried that :)
I've attached another patch which should fix this problem.

The single failing SUM(numeric) regression test is still in there and it is
a known failure to do the extra trailing zeros that it can now produce that
would not be present in an unpatched version. It's there purely in the hope
to generate some discussion about it to find out if we can use inverse
transitions for sum(numeric) or not.

Regards

David Rowley

Attachment Content-Type Size
inverse_transition_functions_v1.9.patch.gz application/x-gzip 19.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2014-01-03 07:16:27 Re: [PATCH] Remove some duplicate if conditions
Previous Message Amit Kapila 2014-01-03 03:35:52 Re: ERROR: missing chunk number 0 for toast value