Re: Add RANGE with values and exclusions clauses to the Window Functions

From: Oliver Ford <ojford(at)gmail(dot)com>
To: Erikjan Rijkers <er(at)xs4all(dot)nl>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add RANGE with values and exclusions clauses to the Window Functions
Date: 2017-11-24 16:11:10
Message-ID: CAGMVOdu5yHO6US3Fn+fyqf_WCF_e8iEzMhVjsWCSka2uBcDK7Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 24, 2017 at 3:08 PM, Erikjan Rijkers <er(at)xs4all(dot)nl> wrote:
> (debian 8)
>
> make check fails:
>
> foreign_data ... ok
> window ... FAILED
> xmlmap ... ok
>
> The diff is:
>
> $ ( cd /var/data1/pg_stuff/pg_sandbox/pgsql.frame_range/src/test/regress &&
> cat regression.diffs )
> ***
> /var/data1/pg_stuff/pg_sandbox/pgsql.frame_range/src/test/regress/expected/window.out
> 2017-11-24 15:36:15.387573714 +0100
> ---
> /var/data1/pg_stuff/pg_sandbox/pgsql.frame_range/src/test/regress/results/window.out
> 2017-11-24 15:38:35.290553157 +0100
> ***************
> *** 1034,1043 ****
> (10 rows)
>
> SELECT pg_get_viewdef('v_window');
> ! pg_get_viewdef
> ! ----------------------------------------------
> ! SELECT i.i, +
> ! sum(i.i) OVER (ORDER BY i.i) AS sum_rows+
> FROM generate_series(1, 10) i(i);
> (1 row)
>
> --- 1034,1043 ----
> (10 rows)
>
> SELECT pg_get_viewdef('v_window');
> ! pg_get_viewdef
> !
> ---------------------------------------------------------------------------------------
> ! SELECT i.i,
> +
> ! sum(i.i) OVER (ORDER BY i.i ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)
> AS sum_rows+
> FROM generate_series(1, 10) i(i);
> (1 row)
>
>
> This small hickup didn't prevent building an instance but obviously I
> haven't done any real tests yet.
>

I think something was committed recently that changed the spacing of
pg_get_viewdef on Windows. I had the same spacing as you until I
pulled this morning, so I updated my expected output but now it looks
like whatever's changed on Windows hasn't changed on Linux.....

I'll try and find what caused this change.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-11-24 16:39:35 Re: Query became very slow after 9.6 -> 10 upgrade
Previous Message Alvaro Herrera 2017-11-24 16:07:56 Re: [HACKERS] Restrict concurrent update/delete with UPDATE of partition key