citusdata/cstore_fdw

How to perform parallel execution on the `cstore_fdw` partition table ?

suuuch opened this issue · 4 comments

I was use cstore_fdw, and I created 20 partition table ,when i query the partition table ,I realize the query plan did not show the parallel.But when use the normal table ,the parallel is worked.

This make me confuse. Is there anyone can help?

hi @suuuch
unfortunately cstore_fdw does not support parallel scans yet. It looks like postgresql is not using parallel scan when one partition does not support paralel execution (needs verification).

Any plans to address this issue?

A colleague of mine tried this on partitioned cstore tables and said it's working, making things faster: https://gist.github.com/masayuki038/6820f551f1a6d4e1ec7b3929ffad35ad

Basically, he just set ForeignScanParallelSafe to true. That is nice, but I would like to hear why wasn't it safe in the first place, @mtuncer ?