Re: citext plugin is not working with java applications - Mailing list pgsql-docs

From David G. Johnston
Subject Re: citext plugin is not working with java applications
Date
Msg-id CAKFQuwaDCHHveSXeo6xNgQWgGp4ExinDZAdXjng1zHxdFAEtPQ@mail.gmail.com
Whole thread Raw
In response to Re: citext plugin is not working with java applications  (Bruce Momjian <bruce@momjian.us>)
List pgsql-docs
On Mon, Jan 21, 2019 at 7:39 PM Bruce Momjian <bruce@momjian.us> wrote:
> You have not explained what "does not work" means.

True...but assuming it is true would we accept placing a
driver-specific warning here? We do not do so anywhere else in the
documentation that I am aware.

The main issue, IIUC, is that Prepared Statements require their input
types to be known while most users write queries without specifying
data types explicitly.  The JDBC driver falls back to determining the
untyped input as text instead of citext which forces a "text op text"
comparison instead of a "citext op citext" one when the query is
executed.

The JDBC docs don't seem to cover this, which they should as it is
their limitation, not ours (that I am aware of...), though I'm unsure
exactly what the limitation stems from.

David J.


pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: citext plugin is not working with java applications
Next
From: Pavlo Golub
Date:
Subject: `transaction_read_only` GUC undocumented