Question on TRUNCATE privleges - Mailing list pgsql-novice

From Keith Worthington
Subject Question on TRUNCATE privleges
Date
Msg-id 20050222181314.M69552@narrowpathinc.com
Whole thread Raw
Responses Re: Question on TRUNCATE privleges  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Hi All,

I have just discovered that I can speed up one of my functions by a factor of
600 by changing an unqualified DELETE to a TRUNCATE.  Unfortunately, the
function is run by multiple users and I get the error message
   "TESTDB=> TRUNCATE inventory.tbl_item;
   ERROR:  must be owner of relation tbl_item

There is nothing in the documentation
(http://www.postgresql.org/docs/8.0/interactive/sql-truncate.html) about this
restriction ( You see Michael I am still reading the documentation. ;-) )  Do
I get to post my first user comment on the documentation pages?  Do I? Hunh?
Can I? :-)

Is there a way to have multiple owners of a table or otherwise achive this
behavior?

Do I get to post my first user comment on the documentation pages?  Do I?
Hunh? Hunh? Can I? :-)

Kind Regards,
Keith

pgsql-novice by date:

Previous
From: john-paul delaney
Date:
Subject: Re: recursive processing
Next
From: Tom Lane
Date:
Subject: Re: Question on TRUNCATE privleges