mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-03 06:27:18 +02:00
Rather than expect the Query returned by get_view_query() to be
read-only and then copy bits and pieces of it out, simply copy the
entire structure when we get it. This addresses an issue where
AcquireRewriteLocks, which is called by acquireLocksOnSubLinks(),
scribbles on the parsetree passed in, which was actually an entry
in relcache, leading to segfaults with certain view definitions.
This also future-proofs us a bit for anyone adding more code to this
path.
The acquireLocksOnSubLinks() was added in commit
|
||
---|---|---|
.. | ||
examples | ||
isolation | ||
locale | ||
mb | ||
modules | ||
perl | ||
regress | ||
ssl | ||
thread | ||
Makefile |