From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Jeevan Chalke <jeevan.chalke@enterprisedb.com>
To: Atri Sharma <atri.jiit@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Postgres-Bugs <pgsql-bugs@postgresql.org>
Subject: Re: [HACKERS] GSets: Getting collation related error when GSets has text column
Date: Fri, 17 Jul 2015 18:33:44 +0100
Message-ID: <87pp3qheq5.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CAM2+6=W=9=hQOipH0HAPbkun3Z3TFWij_EiHue0_6UX=oR=1kw@mail.gmail.com>
References: <CAM2+6=W=9=hQOipH0HAPbkun3Z3TFWij_EiHue0_6UX=oR=1kw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
>>>>> "Jeevan" == Jeevan Chalke <jeevan.chalke@enterprisedb.com> writes:
Jeevan> Hi,
Jeevan> When we have text column in the GROUPING SETS (and with some specific
Jeevan> order of columns), we are getting error saying
Jeevan> "could not determine which collation to use for string comparison"
Good catch.
Jeevan> After spending enough time, If I understood the code correctly,
Jeevan> we are re-ordering the sort columns but we are not remapping
Jeevan> the grpColIdx correctly.
Yup.
Jeevan> Attached patch which attempts to fix this issue. However I am
Jeevan> not sure whether it is correct. But it does not add any new
Jeevan> issues as such. Added few test in the patch as well.
I wouldn't have bothered moving the Assert; it can be removed. Otherwise
it looks correct.
--
Andrew (irc:RhodiumToad)
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: andrew@tao11.riddles.org.uk, jeevan.chalke@enterprisedb.com, atri.jiit@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] GSets: Getting collation related error when GSets has text column
In-Reply-To: <87pp3qheq5.fsf@news-spur.riddles.org.uk>
References: <CAM2+6=W=9=hQOipH0HAPbkun3Z3TFWij_EiHue0_6UX=oR=1kw@mail.gmail.com> <87pp3qheq5.fsf@news-spur.riddles.org.uk>
* 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