Re: Difference in execution plans pg12 vs pg14

2021-12-11 Thread Дмитрий Иванов
Ok, I will check. Now I have even more questions. This behavior appeared, it was not there in the first place. jit-compilation down my long aggregation queries by about half on average. How do I adjust this correctly? #jit_provider = 'llvmjit' # JIT library to use #jit_above_cost = 10 # perfor

Re: Difference in execution plans pg12 vs pg14

2021-12-11 Thread Peter J. Holzer
On 2021-12-11 06:00:40 +0500, Дмитрий Иванов wrote: > Afternoon. I was able to make the necessary changes to my base needed to > migrate win_pg12 to debian pg14. > But there is a new problem, which was not there at the initial stage so I > checked: > > win_pg12: > ->  Index Scan using index_class_

Re: Difference in execution plans pg12 vs pg14

2021-12-11 Thread Дмитрий Иванов
Thanks to Imre Samu's help, I found out that this is an unwarranted interference of the JIT compilation. When it is disabled, the short queries work stably. Before the problem started, I purposely increased the amount of surrogate data to evaluate performance. Perhaps the logic for enabling JIT com

Re: Postgresql + containerization possible use case

2021-12-11 Thread Michael Lewis
Interesting. I'm not sure that moving an image for a VM with Postgres is compatible with the goal of minimizing time/data but if upgrades are yearly or something, perhaps that is reasonable. It has been 9+ years since that post as well. But the full data will need to be included in the image if the