Re: regression tests fails - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: regression tests fails
Date
Msg-id CAMsr+YE1-aPxRzprO88fX3Kq4P+JhSGDnLiOm=2ZVs3Y-r3cxw@mail.gmail.com
Whole thread Raw
In response to Re: regression tests fails  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: regression tests fails
List pgsql-hackers
On 21 November 2016 at 14:45, Pavel Stehule <pavel.stehule@gmail.com> wrote:

>  SELECT (regexp_split_to_array(data, ':'))[4], COUNT(*),
> (array_agg(data))[1], (array_agg(data))[count(*)]
>   FROM pg_logical_slot_get_changes('regression_slot', NULL,NULL) WHERE data
> ~ 'INSERT'
>   GROUP BY 1 ORDER BY 1;
>
> but result is sensitive on locales setting - doesn't work well with czech
> locales.

Simple fix here is to append COLLATE "C" after the ORDER BY.



-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: delta relations in AFTER triggers
Next
From: Pavel Stehule
Date:
Subject: Re: regression tests fails