Re: Postgres architecture for multiple instances

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
Cc: "Giuseppe Sacco" <giuseppe(at)eppesuigoccas(dot)homedns(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres architecture for multiple instances
Date: 2015-02-22 19:53:08
Message-ID: 31500.1424634788@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Daniel Verite" <daniel(at)manitou-mail(dot)org> writes:
> Giuseppe Sacco wrote:
>> Another important fact is about large objects, if you happen to use
>> them: their OID is not just unique to the database, but to the whole
>> cluster. This means that when you move a database in a cluster from a
>> production system to a database on a test cluster, you may get errors
>> when same OID already exists in target cluster (even if it is used in a
>> different database).

> Well, I'm doing this frequently and it doesn't cause any error.

That's because the above claim is nonsense. pg_largeobject is not shared
across databases of a cluster.

You could well have collisions against large objects in the same database,
though, if you're adding more large objects to an existing database and
expecting to preserve their OIDs.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2015-02-22 19:53:11 Re: Postgres architecture for multiple instances
Previous Message Tom Lane 2015-02-22 19:47:52 Re: express composite type literal as text