Re: Weird behavior with custom operators

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: matthieu(dot)huin(at)wallix(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Weird behavior with custom operators
Date: 2010-08-26 15:05:06
Message-ID: 9308.1282835106@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matthieu HUIN <matthieu(dot)huin(at)wallix(dot)com> writes:
> xxx=> SELECT value FROM tags WHERE value > 3 LIMIT 1;
> ERROR: unsupported type: 17886

I think you're probably hitting this:

/*
* Can't get here unless someone tries to use scalarltsel/scalargtsel on
* an operator with one numeric and one non-numeric operand.
*/
elog(ERROR, "unsupported type: %u", typid);

While you could possibly make it work by writing wrappers around those
selectivity functions instead of using them directly, I'm kind of
wondering what is the point of this datatype anyway? Seems like
declaring it as a domain over text might be easier.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthieu HUIN 2010-08-26 15:23:14 Re: Weird behavior with custom operators
Previous Message Joshua Berry 2010-08-26 14:07:46 Re: Optimizing queries that use multiple tables and many order by columns