postgresql/src
Robert Haas 1761653bbb Make create_unique_path manage memory like mark_dummy_rel.
Put the unique path in the same context as the owning RelOptInfo, rather
than the toplevel planner context.  This is how this function worked
originally, but commit f41803bb39
changed it without explanation.  mark_dummy_rel adopted the older (or
newer?) technique in commit eca75a12a2,
which also featured a much better explanation of why it is correct.
So, switch back to that technique here, with the same explanation
given there.

Although this fixes a possible memory leak when GEQO is in use, the
leak is minor and probably nobody cares, so no back-patch.

Ashutosh Bapat, reviewed by Tom Lane and by me

Discussion: http://postgr.es/m/CAFjFpRcXkHHrXyD9BCvkgGJV4TnHG2SWJ0PhJfrDu3NAcQvh7g@mail.gmail.com
2017-11-30 09:50:10 -05:00
..
backend Make create_unique_path manage memory like mark_dummy_rel. 2017-11-30 09:50:10 -05:00
bin Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
common Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
fe_utils Exclude flex-generated code from coverage testing 2017-10-16 16:28:11 -04:00
include Add a barrier primitive for synchronizing backends. 2017-11-29 17:07:16 -08:00
interfaces Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
makefiles
pl PL/Python: Fix remaining scan-build warnings 2017-11-29 09:56:49 -05:00
port Rewrite strnlen replacement implementation from 8a241792f9. 2017-10-10 14:50:30 -07:00
template Force "restrict" not to be used when compiling with xlc. 2017-10-13 12:15:06 -07:00
test Fix non-GNU makefiles for AIX make. 2017-11-30 00:57:22 -08:00
timezone Replace raw timezone source data with IANA's new compact format. 2017-11-25 15:30:11 -05:00
tools Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
tutorial
.gitignore
DEVELOPERS
Makefile Build src/test/isolation during "make" and "make install". 2017-11-22 20:18:15 -08:00
Makefile.global.in Convert documentation to DocBook XML 2017-11-23 09:44:28 -05:00
Makefile.shlib
nls-global.mk