Re: Regarding TODO item "%Add a separate TRUNCATE

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Regarding TODO item "%Add a separate TRUNCATE
Дата
Msg-id 20060426175728.GO4474@ns.snowman.net
обсуждение исходный текст
Ответ на Re: Regarding TODO item "%Add a separate TRUNCATE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Gevik Babakhani <pgdev@xs4all.nl> writes:
> > Would the privilege apply to the table depending on the table being
> > truncated?
>
> I think the idea is to require TRUNCATE privilege on all the tables
> being truncated in the command.  This would substitute for the existing
> ownership check.

Right, definitely agree about this.

> I do have a concern here, which is that GRANT ALL on a table didn't use
> to convey TRUNCATE, but now it will.  However, since GRANT ALL does
> confer the right to do "DELETE FROM tab", maybe this isn't an issue.

Hmmm, I have to agree that this an interesting question.  I don't tend
to use "GRANT ALL" so I'm not really sure what people are thinking when
they use it.  It seems to me that it'd make sense to include TRUNCATE in
'GRANT ALL' (since it includes the abilities to create triggers and
references, etc, which I wouldn't generally consider to be "normal",
where "normal" would be select/insert/update/delete).
Thanks,
    Stephen

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Regarding TODO item "%Add a separate TRUNCATE permission"
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Regarding TODO item "%Add a separate TRUNCATE permission"