Re: MySQL search query is not executing in Postgres DB
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>, premanand <kottiprem@gmail.com>, pgsql-hackers@postgresql.org
Date: 2012-02-17T15:27:35Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > I understand why it's a bad idea to rely on integer = text doing > anything sane - is that text equality or numeric equality? > And in theory the same issue could exist here if there were another > meaning for LIKE. But there isn't. Really? LIKE is just a different spelling for operator ~~, and there is nothing stopping people from defining more operators named that, not to mention that there are already four of them in core PG. In particular the bytea ~~ bytea version is explicitly intended to provide a LIKE implementation for non-text types. I see some operators named ~~ in contrib as well. regards, tom lane