postgresql/src/backend
Tom Lane 7449427a1e Clean up some loose ends from the column privileges patch: add
has_column_privilege and has_any_column_privilege SQL functions; fix the
information_schema views that are supposed to pay attention to column
privileges; adjust pg_stats to show stats for any column you have select
privilege on; and fix COPY to allow copying a subset of columns if the user
has suitable per-column privileges for all the columns.

To improve efficiency of some of the information_schema views, extend the
has_xxx_privilege functions to allow inquiring about the OR of a set of
privileges in just one call.  This is just exposing capability that already
existed in the underlying aclcheck routines.

In passing, make the information_schema views report the owner's own
privileges as being grantable, since Postgres assumes this even when the grant
option bit is not set in the ACL.  This is a longstanding oversight.

Also, make the new has_xxx_privilege functions for foreign data objects follow
the same coding conventions used by the older ones.

Stephen Frost and Tom Lane
2009-02-06 21:15:12 +00:00
..
access Allow reloption names to have qualifiers, initially supporting a TOAST 2009-02-02 19:31:40 +00:00
bootstrap Support column-level privileges, as required by SQL standard. 2009-01-22 20:16:10 +00:00
catalog Clean up some loose ends from the column privileges patch: add 2009-02-06 21:15:12 +00:00
commands Clean up some loose ends from the column privileges patch: add 2009-02-06 21:15:12 +00:00
executor Allow reloption names to have qualifiers, initially supporting a TOAST 2009-02-02 19:31:40 +00:00
foreign Update copyright for 2009. 2009-01-01 17:24:05 +00:00
lib Update copyright for 2009. 2009-01-01 17:24:05 +00:00
libpq Go over all OpenSSL return values and make sure we compare them 2009-01-28 15:06:47 +00:00
main Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodes Allow reloption names to have qualifiers, initially supporting a TOAST 2009-02-02 19:31:40 +00:00
optimizer Fix an old corner-case error in match_unsorted_outer(): don't consider 2009-02-05 01:24:55 +00:00
parser Allow reloption names to have qualifiers, initially supporting a TOAST 2009-02-02 19:31:40 +00:00
po Translation updates 2008-01-31 18:04:52 +00:00
port Update copyright for 2009. 2009-01-01 17:24:05 +00:00
postmaster Add a failure check for syslogger's use of _beginthreadex(), and remove 2009-02-03 00:59:26 +00:00
regex Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
rewrite Revert updatable views 2009-01-27 12:40:15 +00:00
snowball Update copyright for 2009. 2009-01-01 17:24:05 +00:00
storage Add a new option to RestoreBkpBlocks() to indicate if a cleanup lock should 2009-01-20 18:59:37 +00:00
tcop Allow reloption names to have qualifiers, initially supporting a TOAST 2009-02-02 19:31:40 +00:00
tsearch Fix incorrect dereferencing of char* to array's index. 2009-01-29 16:22:10 +00:00
utils Clean up some loose ends from the column privileges patch: add 2009-02-06 21:15:12 +00:00
Makefile Update copyright for 2009. 2009-01-01 17:24:05 +00:00
common.mk Code coverage testing with gcov. Documentation is in the regression test 2008-09-05 12:11:18 +00:00
nls.mk Install a more robust solution for the problem of infinite error-processing 2008-10-27 19:37:22 +00:00