Daniel Kalchev <daniel(at)digsys(dot)bg> writes:
> There is more to it:
> customer=# select max(oid) from croute;
> max
> -------------
> -2144025472
> (1 row)
> How to handle this?
Use a more recent Postgres release. max(oid) behaves as expected in
7.2. Before that it was piggybacking on max(int4), which meant that
it chose the wrong value once you had any entries with the high bit
set...
regards, tom lane