Jdbc and oid

Поиск
Список
Период
Сортировка
От Pierre-Olivier Gaillard
Тема Jdbc and oid
Дата
Msg-id 35EC2CF3.3451941@hol.fr
обсуждение исходный текст
Ответы Re: [INTERFACES] Jdbc and oid  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Sebastian Meyer
Дата:
Сообщение: pgsql.tcl: Bug concerning joins
Следующее
От: Arthur Heinz
Дата:
Сообщение: (no subject)