Re: Must be table owner to truncate? - Mailing list pgsql-general

From Kevin Hunter
Subject Re: Must be table owner to truncate?
Date
Msg-id 48905243.7030503@earlham.edu
Whole thread Raw
In response to Re: Must be table owner to truncate?  (Said Ramirez <sramirez@vonage.com>)
Responses Re: Must be table owner to truncate?
List pgsql-general
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?

Also interesting to note that TRUNCATE is transaction safe, but not MVCC
safe.  Good to know, good to know ...

Kevin

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: How do I set up automatic backups?
Next
From: Ragnar
Date:
Subject: Re: Must be table owner to truncate?