Re: Alias hstore's ? to ~ so that it works with JDBC - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Alias hstore's ? to ~ so that it works with JDBC
Date
Msg-id 51129A30.6080908@dunslane.net
Whole thread Raw
In response to Re: Alias hstore's ? to ~ so that it works with JDBC  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: Alias hstore's ? to ~ so that it works with JDBC
List pgsql-hackers
On 02/06/2013 12:34 PM, Merlin Moncure wrote:
>
> The point is that Postgres should not introduce language constraints
> because of broken driver technology.

+1

> To move forward in your
> particular case, consider:
> *) switching to 'hstore defined()' function:

good solution - but just use the existing "exist()" function.

> *) hacking pg_operator (carefully look up and change oprname for the
> specific hstore operator)

bad solution. Why not just provide an additional operator?
   CREATE OPERATOR ~ (        LEFTARG = hstore,        RIGHTARG = text,        PROCEDURE = exist,        RESTRICT =
contsel,       JOIN = contjoinsel   );
 


cheers

andrew





pgsql-hackers by date:

Previous
From: Dev Kumkar
Date:
Subject: Re: Facing authentication error on postgres 9.2 -> dblink functions
Next
From: Robert Haas
Date:
Subject: Re: [COMMITTERS] pgsql: Fast promote mode skips checkpoint at end of recovery.