Create a separate grantable privilege for TRUNCATE, rather than having it be
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Sep 2008 00:47:41 +0000 (00:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Sep 2008 00:47:41 +0000 (00:47 +0000)
commit8e65a0cfd2a062485719e6e9fa8926fad3ba48ca
treec67237a9aaa03d0bbcb079702f5182d1a8b3ca42
parent5d937da86f8fe74048336a997b77a7bbfa3e7434
Create a separate grantable privilege for TRUNCATE, rather than having it be
always owner-only.  The TRUNCATE privilege works identically to the DELETE
privilege so far as interactions with the rest of the system go.

Robert Haas
22 files changed:
doc/src/sgml/ddl.sgml
doc/src/sgml/func.sgml
doc/src/sgml/information_schema.sgml
doc/src/sgml/ref/grant.sgml
doc/src/sgml/ref/lock.sgml
doc/src/sgml/ref/revoke.sgml
doc/src/sgml/ref/truncate.sgml
doc/src/sgml/user-manag.sgml
src/backend/catalog/aclchk.c
src/backend/catalog/information_schema.sql
src/backend/commands/lockcmds.c
src/backend/commands/tablecmds.c
src/backend/utils/adt/acl.c
src/bin/pg_dump/dumputils.c
src/bin/psql/tab-complete.c
src/include/catalog/catversion.h
src/include/nodes/parsenodes.h
src/include/utils/acl.h
src/test/regress/expected/dependency.out
src/test/regress/expected/privileges.out
src/test/regress/sql/dependency.sql
src/test/regress/sql/privileges.sql