Re: Updating OID column

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Updating OID column
Дата
Msg-id 20060410090830.GA22409@svana.org
обсуждение исходный текст
Ответ на Re: Updating OID column  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Ответы Re: Updating OID column  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Apr 10, 2006 at 04:40:50PM +0800, Qingqing Zhou wrote:
>
> "Peter Eisentraut" <peter_e@gmx.net> wrote
> > Is there a reason for why you can't update the OID column other than that
> no
> > one has bothered to code up the support for it?
> >
>
> AFAIK if two rows are with the same OID, we will think these two rows are
> different versions of the same tuple. So if we allow users to change OID
> columns, we may encounter some inconsistency.

Hardly, OIDs are optional anyway these days. We only guarentee that
OIDs will be unique if you have a unique index on them, so I imagine
the only reason it hasn't happened yet is because nobody's coded it.

How about when you select from a table with OIDs that it shows the OID
column? That would be the final step, wouldn't it?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Support Parallel Query Execution in Executor
Следующее
От: Markus Schiltknecht
Дата:
Сообщение: Re: Support Parallel Query Execution in Executor