From: | "Adrian Tineo" <adriantineo(at)softhome(dot)net> |
---|---|
To: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: Problems with OIDs |
Date: | 2002-10-24 08:23:05 |
Message-ID: | 001d01c27b36$99993400$4eddd8d9@supercable.es |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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??
From | Date | Subject | |
---|---|---|---|
Next Message | Jules Alberts | 2002-10-24 08:42:25 | Re: Problems with OIDs |
Previous Message | Carlos García Gómez | 2002-10-24 06:39:48 | Problems with OIDs |