On 06/18/2013 07:27 AM, Brian Candler wrote: > Aside: I think Postgres will reject a quoted string being used in an > integer context. Not correct: db=> create temp table tt (val integer); CREATE TABLE db=> insert into tt values ('1'); INSERT 0 1