Ludek Finstrle <luf@pzkagis.cz> writes:
>> If you want an add-on datatype that is really different from OID, then
>> make a real datatype (CREATE TYPE). You can still piggyback on OID as
>> the representation type --- steal its I/O functions and so on.
> Does it cover lo_export which need oid as second parameter?
You could make an implicit cast from lo to oid ... perhaps not the other
direction, though.
regards, tom lane