Jdbc and oid - Mailing list pgsql-interfaces

From Pierre-Olivier Gaillard
Subject Jdbc and oid
Date
Msg-id 35EC2CF3.3451941@hol.fr
Whole thread Raw
Responses Re: [INTERFACES] Jdbc and oid
List pgsql-interfaces
Hello,

I need to use the oid of postgresql rows as primary key. The trouble is
that INSERT does not return the oid of created objects in JDBC (the psql
frontend does display the oid after INSERT, so the info should be
available). So I can create objects but cannot know their oid, so I
cannot find them in the database (other columns may not be assumed to
have unique values).

Does somebody know if this will be solved in 6.4 ? Or is it good enough
to use the Large object creation (which seems to return an oid) ?

In case you need some background : I need this to write classes that
automatically store themselves to the database. Relationships are to be
stored as well. This is why I need oids : they are a convenient way to
reference objects (and probably fast, too). By the way maybe some FREE
implementation of such a framework is available, do you know any ?


    Thanks a lot.

    P.O. Gaillard


pgsql-interfaces by date:

Previous
From: Sebastian Meyer
Date:
Subject: pgsql.tcl: Bug concerning joins
Next
From: Arthur Heinz
Date:
Subject: (no subject)