Re: OID assistance

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: OID assistance
Дата
Msg-id
18969.1108744836@sss.pgh.pa.us
Ответ на
Re: OID assistance (Greg Spiegelberg)
Список
Дерево обсуждения
OID assistance "Spiegelberg, Greg" <gspiegelberg@cranel.com>
Re: OID assistance Tom Lane <tgl@sss.pgh.pa.us>
Re: OID assistance Greg Spiegelberg <gspiegelberg@cranel.com>
Re: OID assistance Tom Lane <tgl@sss.pgh.pa.us>
Re: OID assistance Greg Spiegelberg <gspiegelberg@cranel.com>
Re: OID assistance Tom Lane <tgl@sss.pgh.pa.us>
Re: OID assistance Greg Spiegelberg <gspiegelberg@cranel.com>
Re: OID assistance Tom Lane <tgl@sss.pgh.pa.us>
Greg Spiegelberg  writes:
> Tom Lane wrote:
>> Well, put a unique index on the contents column.  Better to fail an
>> insert than to get a conflict of LO OIDs.

> Can't do that.  Our app won't handle it.

Actually, I think the lo_import() will fail anyway, whether you like it
or not.  There's a unique index on pg_largeobject.

> This does lead me to 2 questions... first, why is this still an issue and
> not fixed in the backend where OID's are managed?

When you're two major versions behind, you don't have a lot of leeway to
complain about why things are still an issue ;-).  But the short answer
is that making OIDs 8 bytes would permanently break platforms that don't
have int64 support, and be a nontrivial performance hit on those where
int64 is substantially slower than int32.  So I'd say it's a good ways
into the future yet.  Eventually we'll decide we don't care about 32-bit
machines anymore, but not for awhile.

			regards, tom lane
В списке pgsql-admin по дате отправления
От: Greg Spiegelberg
Дата:
Сообщение: Re: OID assistance
От: Geoffrey Ducharme
Дата:
FAQ