Re: Must be table owner to truncate?

Поиск
Список
Период
Сортировка
От Ragnar
Тема Re: Must be table owner to truncate?
Дата
Msg-id 1217422346.9672.1.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: Must be table owner to truncate?  (Kevin Hunter <hunteke@earlham.edu>)
Ответы Re: Must be table owner to truncate?  (Stephen Frost <sfrost@snowman.net>)
Re: Must be table owner to truncate?  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-general
On mið, 2008-07-30 at 07:36 -0400, Kevin Hunter wrote:
> At 3:45p -0400 on Mon, 28 Jul 2008, Said Ramirez wrote:
> > According to the documentation,
> > http://www.postgresql.org/docs/current/interactive/sql-truncate.html ,
> > only the owner can truncate a table. Which means the non-owner must
> > either log in/ switch roles as the owner, or they can just run a DELETE.
>
> Well that's interesting.  From a security standpoint, what's the
> difference between an unqualified DELETE and a TRUNCATE?

lack of triggers and RULEs spring to mind.

gnari



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

Предыдущее
От: Kevin Hunter
Дата:
Сообщение: Re: Must be table owner to truncate?
Следующее
От: "Sushma Sagaram"
Дата:
Сообщение: Problem running script