Re: Wacky OID idea

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Wacky OID idea
Дата
Msg-id 87r8hdlq98.fsf@klamath.dyndns.org
обсуждение исходный текст
Ответ на Re: Wacky OID idea  (Alvaro Herrera <alvherre@atentus.com>)
Ответы Re: Wacky OID idea
Список pgsql-hackers
Alvaro Herrera <alvherre@atentus.com> writes:
> Christopher Kings-Lynne dijo: 
> > Could we overload "ALTER TABLE/DROP COLUMN oid" to allow someone to change a
> > table to be WITHOUT OIDs at runtime?

I don't think it would be easy to do this without rewriting the table,
as Alvaro suggested. And if you're going to give this DROP COLUMN
variant totally different behavior from any other form of DROP COLUMN,
ISTM that it doesn't belong with DROP COLUMN.

That said, being able to remove the OIDs from a table would be fairly
useful, IMHO.

> Create new filenode, copy tuples over, change relhasoids.  Seems easy.
> Am I missing something?

Yes -- DROP COLUMN currently doesn't require that the entire table be
re-written, it just modifies some meta-data.

Cheers,

Neil

-- 
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC



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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: FUNC_MAX_ARGS benchmarks
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Wacky OID idea