From: | Pierre-Olivier Gaillard <pierre(dot)gaillard(at)hol(dot)fr> |
---|---|
To: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Jdbc and oid |
Date: | 1998-09-01 17:20:51 |
Message-ID: | 35EC2CF3.3451941@hol.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 1998-09-01 20:24:31 | Re: [INTERFACES] Jdbc and oid |
Previous Message | JohnDz | 1998-09-01 17:15:56 | Re: [INTERFACES] pgsql.tcl: Bug concerning joins |