Avoid redundant relation lock grabs during planning, and make sure

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c1393173aaf98c9156da11a497ca0338a71dc1d7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-05-23T03:01:14Z
Releases: 8.1.0
Avoid redundant relation lock grabs during planning, and make sure
that we acquire a lock on relations added to the query due to inheritance.
Formerly, no such lock was held throughout planning, which meant that
a schema change could occur to invalidate the plan before it's even
been completed.

Files