postgresql/src/backend
Alvaro Herrera 80579f9bb1 Move building of child base quals out into a new function
An upcoming patch which changes how inheritance planning works requires
adding a new function that does a similar job to set_append_rel_size() but
for child target relations.  To save it from having to duplicate the qual
building code, move that to a separate function first.

Here we also change things so that we never attempt to build security quals
after detecting some const false child quals.  We needlessly used to do this
just before we marked the child relation as a dummy rel.

In passing, this also moves the partition pruned check to before the qual
building code.  We don't need to build the child quals before we check if
the partition has been pruned.

Author: David Rowley
Discussion: https://postgr.es/m/CAKJS1f_i+jrrD+if8qC7KPuTAAWsd=dtepgY_7u=P86GDEwm7A@mail.gmail.com
2019-02-01 06:47:49 -03:00
..
access Adjust comment about timeout when waiting for WAL at recovery 2019-02-01 10:46:45 +09:00
bootstrap Remove argument isprimary from index_build() 2019-01-24 07:57:09 +09:00
catalog Add more columns to pg_stat_ssl 2019-02-01 00:33:47 +01:00
commands Allow RECORD and RECORD[] to be specified in function coldeflists. 2019-01-30 19:25:33 -05:00
executor Rename nodes/relation.h to nodes/pathnodes.h. 2019-01-29 16:49:25 -05:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Refactor planner's header files. 2019-01-29 15:48:51 -05:00
lib Update copyright for 2019 2019-01-02 12:44:25 -05:00
libpq Add more columns to pg_stat_ssl 2019-02-01 00:33:47 +01:00
main Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
nodes Rename nodes/relation.h to nodes/pathnodes.h. 2019-01-29 16:49:25 -05:00
optimizer Move building of child base quals out into a new function 2019-02-01 06:47:49 -03:00
parser Allow RECORD and RECORD[] to be specified in function coldeflists. 2019-01-30 19:25:33 -05:00
partitioning Refactor planner's header files. 2019-01-29 15:48:51 -05:00
po Translation updates 2018-06-25 12:37:18 +02:00
port Update copyright for 2019 2019-01-02 12:44:25 -05:00
postmaster Add more columns to pg_stat_ssl 2019-02-01 00:33:47 +01:00
regex Update copyright for 2019 2019-01-02 12:44:25 -05:00
replication Refactor planner's header files. 2019-01-29 15:48:51 -05:00
rewrite Rename nodes/relation.h to nodes/pathnodes.h. 2019-01-29 16:49:25 -05:00
snowball Update copyright for 2019 2019-01-02 12:44:25 -05:00
statistics Rename nodes/relation.h to nodes/pathnodes.h. 2019-01-29 16:49:25 -05:00
storage Revert "Avoid creation of the free space map for small heap relations." 2019-01-28 11:31:44 +05:30
tcop Refactor planner's header files. 2019-01-29 15:48:51 -05:00
tsearch Update copyright for 2019 2019-01-02 12:44:25 -05:00
utils Add more columns to pg_stat_ssl 2019-02-01 00:33:47 +01:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2018-06-25 12:37:18 +02:00