Re: Using oids
От | rolf.ostvik@axxessit.no |
---|---|
Тема | Re: Using oids |
Дата | |
Msg-id | OF8865C975.837EFEDE-ONC1256D97.00219BD4@axxessit.no обсуждение исходный текст |
Ответ на | Using oids (Malcolm Warren <malcolm@villeinitalia.com>) |
Список | pgsql-general |
on 2003-09-03 13:47 Bo Lorentsen <bl@netgroup.dk> wrote: >No it don't know anything about the table it insert into. I simply do >the following : >1. INSERT data (comming from another layer) >2. Get the last oid >3. SELECT * FROM the same table where oid = what I just found. >I know absolutly nothing about the table, and I like it this way :-) I am not sure where the best place would be to jump into the discussion with my suggestion so i do it her. The problem is that someone use the OID as an identifier which always is there, and you always use the same method to extract it, while at the same time the use of OID is not advisable. One alternative could be to create one sequence and use this sequence as a identifier in all tables. This would be a little bit more work when creating the table, but it would be easier to extract the last used value from the sequence than it is to extract it from the OID (since i really haven't loooked into how to extract the OID in a easy way). This will of course duplicate the function of the OID which (as of present) always is there. -- Rolf
В списке pgsql-general по дате отправления: