Re: Hash Right join and seq scan

2024-07-05 Thread David Rowley
On Sat, 6 Jul 2024 at 02:43, James Pang wrote: >for nest loop path, since the first one estimated only "8" rows , > and they use partitionkeyid as joinkey and all are hash partitions , is it > better to estimate cost to 8 (loop times) * 1600 = 12800 (each one loop map > to only 1

Re: Hash Right join and seq scan

2024-07-05 Thread James Pang
David Rowley 於 2024年7月5日週五 上午10:15寫道: > On Fri, 5 Jul 2024 at 12:50, James Pang wrote: > >we have a daily vacuumdb and analyze job, generally speaking it's > done in seconds, sometimes it suddenly running more than tens of minutes > with same bind variable values and huge temp space got used