questions on ALTER TABLE ... OWNER

Поиск
Список
Период
Сортировка
От nconway@klamath.dyndns.org (Neil Conway)
Тема questions on ALTER TABLE ... OWNER
Дата
Msg-id 20020219172401.GA23354@klamath.dyndns.org
обсуждение исходный текст
Ответы Re: questions on ALTER TABLE ... OWNER  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: questions on ALTER TABLE ... OWNER  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
Hi all,

Currently, ALTER TABLE ... OWNER will change the ownership of a table,
view, sequence or index -- despite the fact that its name hints that it
is only for 'altering tables'.

1) Is this behavior optimal? There is clearly a need to change the
ownership of relations other than tables, but it seems to me that
pushing this functionality into ALTER TABLE is unintuitive.

On the other hand, creating ALTER INDEX ... OWNER, ALTER SEQUENCE ...
OWNER, etc. seems like overkill.

2) Should we perhaps warn the user, if they use 'ALTER TABLE ... OWNER'
on a non-table relation?

3) Should this behavior be documented? Currently the docs on ALTER TABLE
... OWNER say nothing about changing the ownership of non-table
relations.

Cheers,

Neil

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


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

Предыдущее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: Re: UTF-8 data migration problem in Postgresql 7.2
Следующее
От: Kovacs Zoltan
Дата:
Сообщение: Re: alter table drop column status