postgresql/src
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
..
backend Clean up some loose ends from the column privileges patch: add 2009-02-06 21:15:12 +00:00
bin Provide for parallel restoration from a custom format archive. Each data and 2009-02-02 20:07:37 +00:00
include Clean up some loose ends from the column privileges patch: add 2009-02-06 21:15:12 +00:00
interfaces Mixing long and int entries of a union only works on some architectures. 2009-02-05 08:28:47 +00:00
makefiles Allow out-of-tree builds on mingw and cygwin 2009-01-05 09:27:20 +00:00
pl Add PL/PgSQL FOUND and GET DIAGNOSTICS support for RETURN QUERY 2009-02-05 15:25:49 +00:00
port Make win32 builds always do SetEnvironmentVariable() when doing putenv(). 2009-01-21 10:30:02 +00:00
template Move forgotten comment closer to where it matters. 2008-10-29 16:23:07 +00:00
test Clean up some loose ends from the column privileges patch: add 2009-02-06 21:15:12 +00:00
timezone Update time zone data files to tzdata release 2009a: introduces Asia/Kathmandu 2009-01-29 19:59:59 +00:00
tools Make win32 builds always do SetEnvironmentVariable() when doing putenv(). 2009-01-21 10:30:02 +00:00
tutorial Update copyright for 2009. 2009-01-01 17:24:05 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile SQL/MED catalog manipulation facilities 2008-12-19 16:25:19 +00:00
Makefile.global.in Recreate ecpg_config.h with a stamp file created by config.status, same 2009-01-22 22:27:13 +00:00
Makefile.shlib Allow out-of-tree builds on mingw and cygwin 2009-01-05 09:27:20 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
nls-global.mk Do not msgmerge against /dev/null; merge against the pot file itself 2009-01-20 09:58:50 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00