postgresql/src/test/regress
Stephen Frost 814b9e9b8e Fix RLS with COPY (col1, col2) FROM tab
Attempting to COPY a subset of columns from a table with RLS enabled
would fail due to an invalid query being constructed (using a single
ColumnRef with the list of fields to exact in 'fields', but that's for
the different levels of an indirection for a single column, not for
specifying multiple columns).

Correct by building a ColumnRef and then RestTarget for each column
being requested and then adding those to the targetList for the select
query.  Include regression tests to hopefully catch if this is broken
again in the future.

Patch-By: Adam Brightwell
Reviewed-By: Michael Paquier
2016-10-03 16:22:57 -04:00
..
data Improve key representation for GIN jsonb_ops, and fix existence-search bug. 2014-05-09 08:41:26 -04:00
expected Fix RLS with COPY (col1, col2) FROM tab 2016-10-03 16:22:57 -04:00
input Remove user_relns() SRF from regression tests. 2016-09-12 19:37:16 -07:00
output Remove user_relns() SRF from regression tests. 2016-09-12 19:37:16 -07:00
sql Fix RLS with COPY (col1, col2) FROM tab 2016-10-03 16:22:57 -04:00
.gitignore Update .gitignore for config.cache. 2014-12-18 19:56:42 +09:00
GNUmakefile Fix misplacement of submake-generated-headers prerequisites. 2016-10-01 13:35:13 -04:00
Makefile Remove remains of old depend target. 2007-01-20 17:16:17 +00:00
README Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
parallel_schedule Add more tests for targetlist SRFs. 2016-09-12 17:27:47 -07:00
pg_regress.c Set log_line_prefix and application name in test drivers 2016-09-30 21:32:33 -04:00
pg_regress.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_regress_main.c Set log_line_prefix and application name in test drivers 2016-09-30 21:32:33 -04:00
regress.c Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
regressplans.sh Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
resultmap Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
serial_schedule Add more tests for targetlist SRFs. 2016-09-12 17:27:47 -07:00
standby_schedule Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00

README

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".