Re: Problems with OIDs

Поиск
Список
Период
Сортировка
От Adrian Tineo
Тема Re: Problems with OIDs
Дата
Msg-id 001d01c27b36$99993400$4eddd8d9@supercable.es
обсуждение исходный текст
Ответ на Problems with OIDs  (Carlos García Gómez <almah@wanadoo.es>)
Список pgsql-php
From excellent Momjian's online book (URL for the extract is
http://www.ca.postgresql.org/docs/aw_pgsql_book/node71.html):

"Every row in POSTGRESQL is assigned a unique, normally invisible number
called an object identification number (OID). When the software is
initialized with initdb, a counter is created and set to approximately
seventeen-thousand. The counter is used to uniquely number every row.
Although databases may be created and destroyed, the counter continues to
increase. It is used by all databases, so identification numbers are always
unique. No two rows in any table or in any database will ever have the same
object ID."

So you can't have a view with the same OID, use another primary key instead.

The index for the book is
http://www.postgresql.org/docs/aw_pgsql_book/index.html. I learned a lot
from there!! Check it.

Adrian Tineo

> I've got the following problem: I had a view with OID 5330 that had to be
> removed from the database, afterwards I created again a view (with the
same
> name, because I need it to be this way) and get the an error telling me
that
> the view with OID 5330 cannot be found, How can I solve it??


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

Предыдущее
От: Carlos García Gómez
Дата:
Сообщение: Problems with OIDs
Следующее
От: Andrew McMillan
Дата:
Сообщение: Re: Problems with OIDs