Martins Zarins <mark(at)vestnesis(dot)lv> writes:
> vestnesis=# select id from doc where oid=2299015900;
> ERROR: dtoi4: integer out of range
> Postgres version 7.2.3.
Update to 7.3, or dump/initdb/reload to reduce your range of OIDs,
or put the constant inside single quotes.
regards, tom lane