Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2017-12-21 17:21:39 +0000
committerAlvaro Herrera2017-12-21 17:21:39 +0000
commit8a0596cb656e357c391cccf12854beb2e05f3901 (patch)
treecde4a211405b9bcb1406ec8cb28ab3ab400a1068 /src/backend/tcop/postgres.c
parent9ef6aba1d3513829d9f77a4a91ca52f2e5719aef (diff)
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
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions