Re: Increasing parallelism of queries while using file fdw and partitions

2018-12-18 Thread Patrick Mulrooney
Justin, Thanks for the idea. I pulled down the source for multicorn and added that to it. I do not see parallel queries in the analyze output (unless I force it and then it only gets one worker), but it does look like it is reading more than one file at once if I go with a non-partitioned

Re: Increasing parallelism of queries while using file fdw and partitions

2018-12-18 Thread Justin Pryzby
On Tue, Dec 18, 2018 at 08:39:36PM -0800, Patrick Mulrooney wrote: > Wondering if anyone had any thoughts on how to tweak my setup to get it to > read many files at once instead of one at a time when using file fdw and > partitions. I found this:

Re: SQL Perfomance during autovacuum

2018-12-18 Thread David Rowley
On Wed, 19 Dec 2018 at 19:04, anand086 wrote: > We have noticed this increase in execution times for the sqls only when > autovacuum runs and it runs with prevent wraparound mode. I think during the > autovacuum process the Buffers: shared hit are increasing causing increase > in execution time.

Increasing parallelism of queries while using file fdw and partitions

2018-12-18 Thread Patrick Mulrooney
Wondering if anyone had any thoughts on how to tweak my setup to get it to read many files at once instead of one at a time when using file fdw and partitions. We have a bunch of data tied up in files (each file > 4M rows, 5,000+ files per year) that I would like to be able to query directly

Re: Why Postgres doesn't use TID scan?

2018-12-18 Thread Alvaro Herrera
On 2018-Dec-17, Tom Lane wrote: > Queries like yours are kinda sorta counterexamples to that, but pretty > much all the ones I've seen seem like crude hacks (and this one is not > an exception). Writing a bunch of code to support them feels like > solving the wrong problem. Admittedly, it's not