Hi,
in very certain case i am getting error
"ERROR: dsa_area could not attach to a segment that has been freed"
I am runningPostgreSQL 10.1 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu
4.8.4-2ubuntu1~14.04.3) 4.8.4, 64-bit
I am getting this error when
1) i set set enable_nestloop to off
2) run query
SELECT delivery_data.id_product AS id_product, client_tt.id_client_tt
FROM delivery_data JOIN client_tt AS client_tt_tmp ON (client_tt_tmp.id_client_tt =
delivery_data.id_client_tt) JOIN client_tt ON (client_tt_tmp.id_unique = client_tt.id_client_tt)
WHERE delivery_data.delivery_date BETWEEN '2017-09-01' AND '2017-11-30' AND client_tt.id_client_tt IN (167427, 167429, 167430, 167433,
167434, 167435, 167436, 167437, 167438, 167485, 167520, 167521, 167527,
167528, 167529, 167530) AND delivery_data.id_ta IN (3911)
GROUP BY client_tt.id_client_tt, delivery_data.id_product
HAVING SUM(delivery_data.amount) > 0
ORDER BY client_tt.id_client_tt
Here is explain for this query:
https://explain.depesz.com/s/slpM
If i change any part of this query, like remove filter
client_tt.id_client_tt or try it on other data set - it works
For me it's looks like a bug (