postgresql/src/bin/pg_dump
Stephen Frost 143b39c185 Rename pg_rowsecurity -> pg_policy and other fixes
As pointed out by Robert, we should really have named pg_rowsecurity
pg_policy, as the objects stored in that catalog are policies.  This
patch fixes that and updates the column names to start with 'pol' to
match the new catalog name.

The security consideration for COPY with row level security, also
pointed out by Robert, has also been addressed by remembering and
re-checking the OID of the relation initially referenced during COPY
processing, to make sure it hasn't changed under us by the time we
finish planning out the query which has been built.

Robert and Alvaro also commented on missing OCLASS and OBJECT entries
for POLICY (formerly ROWSECURITY or POLICY, depending) in various
places.  This patch fixes that too, which also happens to add the
ability to COMMENT on policies.

In passing, attempt to improve the consistency of messages, comments,
and documentation as well.  This removes various incarnations of
'row-security', 'row-level security', 'Row-security', etc, in favor
of 'policy', 'row level security' or 'row_security' as appropriate.

Happy Thanksgiving!
2014-11-27 01:15:57 -05:00
..
po Translation updates 2014-11-16 21:32:51 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
common.c Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
compress_io.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
compress_io.h pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
dumputils.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
dumputils.h Avoid unportable strftime() behavior in pg_dump/pg_dumpall. 2014-10-26 20:59:21 -04:00
keywords.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
Makefile Update copyright for 2014 2014-01-07 16:05:30 -05:00
nls.mk Add missing source files to nls.mk 2014-07-15 10:10:42 -04:00
parallel.c Fix some bogus direct uses of realloc(). 2014-11-18 13:28:06 -05:00
parallel.h Re-pgindent src/bin/pg_dump/*. 2014-10-17 12:19:05 -04:00
pg_backup_archiver.c Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
pg_backup_archiver.h pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_custom.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_db.c Re-pgindent src/bin/pg_dump/*. 2014-10-17 12:19:05 -04:00
pg_backup_db.h pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_directory.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_null.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_tar.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Blind attempt at fixing Win32 pg_dump issues 2014-10-14 17:33:36 -03:00
pg_backup_utils.h pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup.h pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_dump_sort.c Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
pg_dump.c Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
pg_dump.h Rename pg_rowsecurity -> pg_policy and other fixes 2014-11-27 01:15:57 -05:00
pg_dumpall.c Fix pg_dumpall to restore its ability to dump from ancient servers. 2014-11-13 18:19:26 -05:00
pg_restore.c pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00