aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/guc.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2016-10-03 16:23:02 -0400
committerStephen Frost <sfrost@snowman.net>2016-10-03 16:23:02 -0400
commit190765a059cc5e8226cdb18b9715741b32b12255 (patch)
tree36f4370e2dfab0c320ef80321887a3d73e26bc1f /src/backend/utils/misc/guc.c
parentbac56dbe090670408551bd68690e91f7b0207ccf (diff)
downloadpostgresql-190765a059cc5e8226cdb18b9715741b32b12255.tar.gz
postgresql-190765a059cc5e8226cdb18b9715741b32b12255.zip
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
Diffstat (limited to 'src/backend/utils/misc/guc.c')
0 files changed, 0 insertions, 0 deletions