Re: [GENERAL] row oids as "foreign keys" in other tables ? - Mailing list pgsql-general

From Vadim Mikheev
Subject Re: [GENERAL] row oids as "foreign keys" in other tables ?
Date
Msg-id 35BE78DD.B0C945C2@krs.ru
Whole thread Raw
In response to row oids as "foreign keys" in other tables ?  (Matt McClure <matthew.mcclure@yale.edu>)
Responses Re: [GENERAL] row oids as "foreign keys" in other tables ?  (Matt McClure <matthew.mcclure@yale.edu>)
List pgsql-general
Matt McClure wrote:
>
> You say that vacuum "re-writes" the database.  Does it alter row oids???
                                                 ^^^^^^^^^^^^^^^^^^^^^^
No.

> If so, my scheme completely corrupts my database whenever I do a vacuum,
> since in concert and song the row oids would change, but my inserted
> values would remain the same in concert_song, right?
>
> If vacuum does not alter row oids, then I have another question.  How does
> postgres re-use oids?  I've seen the numbers grow and grow, but despite
  ^^^^^^^^^^^^^^^^^^^^
It doesn't.

> deletes, etc, I have never seen a lower oid get re-used.  How does this
> work?

Vadim

pgsql-general by date:

Previous
From: Wilson MacGyver
Date:
Subject: Re: [GENERAL] Postgres vs commercial products
Next
From: "Ounnapirak, Chotiwat"
Date:
Subject: Postgres & Commercial