Re: pg12 partitions show bad performance vs pg96

2020-03-08 Thread Justin Pryzby
On Sun, Mar 08, 2020 at 06:05:26PM +0200, Mariel Cherkassky wrote: > In pg12 I created a table with 3 hash partitiones : > create table iot_data(id serial ,data text,metadata bigint,device bigint > references iot_device(id),primary key(id,device)) partition by hash(device); > and now for the perf

Re: pg12 partitions show bad performance vs pg96

2020-03-08 Thread David Rowley
On Mon, 9 Mar 2020 at 05:05, Mariel Cherkassky wrote: > PG12 : > Planning Time: 8.157 ms > Execution Time: 2.920 ms > (22 rows) > > > PG96 : > Planning time: 0.815 ms > Execution time: 0.158 ms > (12 rows) 8 ms seems pretty slow to planning that query. Does the planning time drop if you execu

Re: pg12 partitions show bad performance vs pg96

2020-03-08 Thread Mariel Cherkassky
I realized that the planner goes to the right partition because "(never executed)" is mentioned near the scan of the other partitions. However, still i'm not sure why performance is better in pg96. ‫בתאריך יום א׳, 8 במרץ 2020 ב-18:05 מאת ‪Mariel Cherkassky‬‏ <‪ mariel.cherkas...@gmail.com‬‏>:‬ >

pg12 partitions show bad performance vs pg96

2020-03-08 Thread Mariel Cherkassky
Hey, I upgraded from 96 to 12 in our test env and I'm seeing that for queries that involve join operation between a partition table and other tables there is degradation is performance compared to pg96 performance. My machine : 8cpu,16gb,regular hd,linux redhat 6 pg settings : max_wal_size = 2GB m