postgresql/src/backend
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
..
access Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
bootstrap Exclude flex-generated code from coverage testing 2017-10-16 16:28:11 -04:00
catalog Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
commands Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
executor Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
foreign Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
lib Allow to avoid NUL-byte management for stringinfos and use in format.c. 2017-10-11 16:01:52 -07:00
libpq Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
main Install Windows crash dump handler before all else. 2017-11-12 14:31:00 -08:00
nodes New C function: bms_add_range 2017-11-29 17:12:05 -05:00
optimizer Make create_unique_path manage memory like mark_dummy_rel. 2017-11-30 09:50:10 -05:00
parser Add some const decorations to prototypes 2017-11-10 13:38:57 -05:00
po Translation updates 2017-08-07 13:55:34 -04:00
port Add some const decorations to prototypes 2017-11-10 13:38:57 -05:00
postmaster Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
regex Mop-up for commit 85feb77aa0. 2017-09-22 11:35:12 -04:00
replication Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
rewrite Fix creation of resjunk tlist entries for inherited mixed UPDATE/DELETE. 2017-11-27 17:54:07 -05:00
snowball Add some const decorations to prototypes 2017-11-10 13:38:57 -05:00
statistics Make memset() use sizeof() rather than re-compute size 2017-11-29 00:13:45 -03:00
storage Add a barrier primitive for synchronizing backends. 2017-11-29 17:07:16 -08:00
tcop Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
tsearch Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
utils Fix neqjoinsel's behavior for semi/anti join cases. 2017-11-29 22:00:37 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Inject $(ICU_LIBS) regardless of platform. 2017-08-20 21:22:18 -07:00
common.mk Add ICU_CFLAGS to global CPPFLAGS 2017-06-12 15:57:22 -04:00
nls.mk Translation updates 2017-05-15 12:19:54 -04:00