postgresql/src/backend
Noah Misch 880511cb0b In REFRESH MATERIALIZED VIEW, set user ID before running user code.
It intended to, but did not, achieve this.  Adopt the new standard of
setting user ID just after locking the relation.  Back-patch to v10 (all
supported versions).

Reviewed by Simon Riggs.  Reported by Alvaro Herrera.

Security: CVE-2022-1552
2022-05-09 08:35:12 -07:00
..
access Make relation-enumerating operations be security-restricted operations. 2022-05-09 08:35:12 -07:00
bootstrap Revert "Skip WAL for new relfilenodes, under wal_level=minimal." 2020-03-22 09:24:13 -07:00
catalog Make relation-enumerating operations be security-restricted operations. 2022-05-09 08:35:12 -07:00
commands In REFRESH MATERIALIZED VIEW, set user ID before running user code. 2022-05-09 08:35:12 -07:00
executor Revert applying column aliases to the output of whole-row Vars. 2022-03-17 18:18:05 -04:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Back-patch LLVM 14 API changes. 2022-03-16 11:40:43 +13:00
lib Fix typo in comment 2021-04-20 14:36:44 +02:00
libpq Allow root-owned SSL private keys in libpq, not only the backend. 2022-03-02 11:57:02 -05:00
main Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
nodes Fix assorted missing logic for GroupingFunc nodes. 2022-03-21 17:44:29 -04:00
optimizer Remove inadequate assertion check in CTE inlining. 2022-04-21 17:58:52 -04:00
parser Avoid invalid array reference in transformAlterTableStmt(). 2022-04-18 12:16:45 -04:00
partitioning Avoid using ambiguous word "non-negative" in error messages. 2021-07-28 01:24:24 +09:00
po Translation updates 2022-05-09 12:27:26 +02:00
port Reject huge_pages=on if shared_memory_type=sysv. 2021-10-26 13:01:52 +13:00
postmaster Fix waiting in RegisterSyncRequest(). 2022-03-16 15:38:13 +13:00
regex Make pg_regexec() robust against out-of-range search_start. 2021-09-11 15:19:54 -04:00
replication Fix the check to limit sync workers. 2022-04-19 09:18:44 +05:30
rewrite Fix rewriter to set hasModifyingCTE correctly on rewritten queries. 2021-09-08 12:05:43 -04:00
snowball Update copyright for 2019 2019-01-02 12:44:25 -05:00
statistics Build inherited extended stats on partitioned tables 2022-01-15 19:02:58 +01:00
storage Fix possibility of self-deadlock in ResolveRecoveryConflictWithBufferPin(). 2022-05-02 18:29:52 -07:00
tcop Suppress warning about stack_base_ptr with late-model GCC. 2022-02-17 22:45:34 -05:00
tsearch Don't leak compiled regex(es) when an ispell cache entry is dropped. 2021-03-18 21:44:43 -04:00
utils Make relation-enumerating operations be security-restricted operations. 2022-05-09 08:35:12 -07:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
nls.mk Translation updates 2020-08-10 15:21:18 +02:00