aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2024-07-16 15:41:22 -0700
committerJeff Davis <jdavis@postgresql.org>2024-07-16 15:41:22 -0700
commitb4da732fd64e936970f38c792f8b32c4bdf2bcd5 (patch)
tree288677abf59991a5a7086a4b14d6c1eb3ba541d7 /contrib/postgres_fdw/postgres_fdw.c
parentb6ed3cf4b07bfff1f166a239b34a75d818458006 (diff)
downloadpostgresql-b4da732fd64e936970f38c792f8b32c4bdf2bcd5.tar.gz
postgresql-b4da732fd64e936970f38c792f8b32c4bdf2bcd5.zip
When creating materialized views, use REFRESH to load data.
Previously, CREATE MATERIALIZED VIEW ... WITH DATA populated the MV the same way as CREATE TABLE ... AS. Instead, reuse the REFRESH logic, which locks down security-restricted operations and restricts the search_path. This reduces the chance that a subsequent refresh will fail. Reported-by: Noah Misch Backpatch-through: 17 Discussion: https://postgr.es/m/20240630222344.db.nmisch@google.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions