Performance bug in DO blocks

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Performance bug in DO blocks
Date: 2011-01-18 18:46:12
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

I just noticed that if you execute the same DO command over and over
within a session, it gets slower and slower. And if you keep it up
you'll notice the backend's RAM consumption bloating too. The cause
appears to be that we leak the cached plans created for any SQL
statements or expressions within the DO command --- the next iteration
won't reuse those, but rather create its own set. Probably ought to
look into releasing those when the DO block is over.

regards, tom lane


Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2011-01-18 18:49:49 Re: test_fsync open_sync test
Previous Message Greg Smith 2011-01-18 18:42:59 Re: [PERFORM] pgbench to the MAXINT