With current sources I get:

regression=# select 'foo' < 'bar';
ERROR:  pg_atoi: error in "foo": can't parse "foo"

I was expecting the system to resolve this as a text comparison,
but it seems to have chosen int4 instead.  This is, um, surprising
behavior.

			regards, tom lane

Wed, 08 Nov 2000 22:23:34 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Bogosity in new unknown-type resolution code