From: | Damir Ciganović-Janković <damir(dot)ciganovic(dot)jankovic(at)gmail(dot)com> |
---|---|
To: | andrew(at)tao11(dot)riddles(dot)org(dot)uk |
Cc: | Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #15334: Partition elimination not working as expected when using enum as partition key |
Date: | 2018-08-20 07:38:21 |
Message-ID: | CA+-2sJ4beOBPcKsLuJJ_UVecYYPBzCTHZ+o2Uv0s7+x1Y5dXSw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hey Amit and Andrew, thank you for helping me :-) Your explanations makes
sense.
We have the way to get around it currently and are eagerly waiting for the
11 release :-)
Once again, thank you for your hard work :-)
Damir
On Mon, Aug 20, 2018 at 8:06 AM Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
wrote:
> >>>>> "Amit" == Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> writes:
>
> Amit> Andrew also mentioned a workaround in his reply to use setString
> Amit> such that JDBC doesn't pass 'MONTH' as of type 'text' and instead
> Amit> as of unknown type. I could't find the documentation of Postgres
> Amit> JDBC's setString to see how one can do that, but maybe you can
> Amit> try it out.
>
> Disclaimer: I don't do java stuff myself, all I know about this is from
> reading the code.
>
> First, there's a connection parameter stringtype=unspecified that
> affects all setString calls on the connection. Second, there may be a
> way to use setObject instead; setObject(1, str, Types.DISTINCT) looks
> like it might work (or maybe Types.OTHER) - unless I'm completely
> misreading the pgjdbc code, that should end up sending the right thing
> to the server.
>
> --
> Andrew (irc:RhodiumToad)
>
From | Date | Subject | |
---|---|---|---|
Next Message | Melek JARRAYA | 2018-08-20 09:55:29 | Not found indexed word |
Previous Message | Andrew Gierth | 2018-08-20 06:06:19 | Re: BUG #15334: Partition elimination not working as expected when using enum as partition key |