aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_expr.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2024-07-16 15:41:29 -0700
committerJeff Davis <jdavis@postgresql.org>2024-07-16 15:41:29 -0700
commit4b74ebf726d444ba820830cad986a1f92f724649 (patch)
tree7b985099966a2649debd6628f4f416baf8467108 /src/backend/parser/parse_expr.c
parent0a8ca122e511884d98a640cb3302866b74638688 (diff)
downloadpostgresql-4b74ebf726d444ba820830cad986a1f92f724649.tar.gz
postgresql-4b74ebf726d444ba820830cad986a1f92f724649.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 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions