Hello I'm playing around with postgres as a search engine by using GIN indexes with trigram module and partitioned table and I'm trying to parallelize the query but no matter what I set the query is always sequential any ideas are welcome. Check out the image for more info. Here is an query (test_trgm_x those are partitions which each holds around 550k rows)
SELECT * FROM test_trgm_1 WHERE n = 1 AND t ~ '(ulpa)'
UNION ALL
SELECT * FROM test_trgm_2 WHERE n = 2 AND t ~ '(piente)';