Jonathan Bartlett <johnnyb@eskimo.com> writes:
>>> If you want a globally unique ID based on OIDs, use the table OID
>>> concatenated with the row OID.
>> Ok, this make sense !
> Are you sure this works after you hit the 4 billion mark?
If you have a unique index on OID on each table for which you care, yes.
As someone else pointed out, you do then have to cope with the
possibility of insertions failing because of OID conflicts.
regards, tom lane