Received: from mail3.hol.fr (root@mail3.hol.fr [194.149.160.38]) by hub.org (8.8.8/8.7.5) with ESMTP id NAA23141 for ; Tue, 1 Sep 1998 13:28:46 -0400 (EDT) Received: from localhost.localdomain (paristnt-232.hol.fr [195.154.32.232]) by mail3.hol.fr (8.8.5/8.8.5) with SMTP id TAA07154 for ; Tue, 1 Sep 1998 19:28:29 +0200 (CEST) Sender: pog@hol.fr Message-ID: <35EC2CF3.3451941@hol.fr> Date: Tue, 01 Sep 1998 17:20:51 +0000 From: Pierre-Olivier Gaillard X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.32 i586) MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Jdbc and oid Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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