pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pierre-Olivier Gaillard <pierre.gaillard@hol.fr>
To: pgsql-interfaces@postgresql.org
Subject: Jdbc and oid
Date: Tue, 01 Sep 1998 17:20:51 +0000
Message-ID: <35EC2CF3.3451941@hol.fr> (raw)

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




view thread (3+ messages)  latest in thread

Message-ID: <35EC2CF3.3451941@hol.fr>
Permalink:  ../35EC2CF3.3451941@hol.fr/
Also on:    postgresql.org/message-id/35EC2CF3.3451941@hol.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pierre.gaillard@hol.fr
  Subject: Re: Jdbc and oid
  In-Reply-To: <35EC2CF3.3451941@hol.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox