From 9e7e03021c4947e845a9e72a45fd7f3f5c0763ce Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Fri, 3 Jun 2016 08:22:38 +0200 Subject: [PATCH] Remove leftover from backporting that breaks compilation of xml2 The tuplestore in xpath_table() is created with random access even though it might not require it, the scaffolding for dealing with relaxing this (commit 05bba3d176e0adc1a032d5c8c6ea2a7622c7dd0d) came the in 8.4 cycle and is yet to be merged. For now drop down to always requesting random access awaiting the merge of the 8.4 patches. --- contrib/xml2/xpath.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/xml2/xpath.c b/contrib/xml2/xpath.c index 203e53905b..3dbb2c80a8 100644 --- a/contrib/xml2/xpath.c +++ b/contrib/xml2/xpath.c @@ -690,9 +690,7 @@ xpath_table(PG_FUNCTION_ARGS) * Create the tuplestore - work_mem is the max in-memory size before a * file is created on disk to hold it. */ - tupstore = - tuplestore_begin_heap(rsinfo->allowedModes & SFRM_Materialize_Random, - false, work_mem); + tupstore = tuplestore_begin_heap(true, false, work_mem); MemoryContextSwitchTo(oldcontext); -- GitLab