postgresql/src/backend
Alvaro Herrera 8a0596cb65 Get rid of copy_partition_key
That function currently exists to avoid leaking memory in
CacheMemoryContext in case of trouble while the partition key is being
built, but there's a better way: allocate everything in a memcxt that
goes away if the current (sub)transaction fails, and once the partition
key is built and no further errors can occur, make the memcxt permanent
by making it a child of CacheMemoryContext.

Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/20171027172730.eh2domlkpn4ja62m@alvherre.pgsql
2017-12-21 14:21:39 -03:00
..
access Cancel CV sleep during subtransaction abort. 2017-12-21 09:24:30 -05:00
bootstrap Exclude flex-generated code from coverage testing 2017-10-16 16:28:11 -04:00
catalog Avoid putting build-location-dependent strings into generated files. 2017-12-21 10:57:06 -05:00
commands Perform a lot more sanity checks when freezing tuples. 2017-12-14 18:20:47 -08:00
executor Add parallel-aware hash joins. 2017-12-21 00:43:41 -08:00
foreign Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
lib Rethink MemoryContext creation to improve performance. 2017-12-13 13:55:16 -05:00
libpq Move SCRAM-related name definitions to scram-common.h 2017-12-18 16:59:48 -05:00
main Install Windows crash dump handler before all else. 2017-11-12 14:31:00 -08:00
nodes Add parallel-aware hash joins. 2017-12-21 00:43:41 -08:00
optimizer Add parallel-aware hash joins. 2017-12-21 00:43:41 -08:00
parser Fix crash when using CALL on an aggregate 2017-12-13 10:37:48 -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 Add parallel-aware hash joins. 2017-12-21 00:43:41 -08:00
regex Mop-up for commit 85feb77aa0. 2017-09-22 11:35:12 -04:00
replication Fix bug in cancellation of non-exclusive backup to avoid assertion failure. 2017-12-19 03:46:14 +09: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 Support boolean columns in functional-dependency statistics. 2017-12-04 11:51:43 -05:00
storage Fix typo 2017-12-21 13:36:52 -03:00
tcop SQL procedures 2017-11-30 11:03:20 -05:00
tsearch Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
utils Get rid of copy_partition_key 2017-12-21 14:21:39 -03: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