Re: pg_migrator and making columns invisible

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_migrator and making columns invisible
Дата
Msg-id 200906021407.n52E7Bx06695@momjian.us
обсуждение исходный текст
Ответ на pg_migrator and making columns invisible  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> pg_migrator requies tables using tsvector data types to be rebuilt, and
> there has been discussion of how to prevent people from accessing those
> columns before they are rebuilt.  We discussed renaming the tables
> (affects all columns) or columns, using rules (not fine-grained enough),
> or using column permissions (doesn't affect super-users).
> 
> My new idea is to mark the column as "dropped" and unmark them before
> rebuilding the table.  That might be the best I can do.  Comments?

FYI, one big problem with this is that if they rebuild the table before
dropping the columns the data is lost.  It seems leaving the data around
as invalid might be safer.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: explain analyze rows=%.0f
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [RFC,PATCH] SIGPIPE masking in local socket connections