Skip site navigation (1) Skip section navigation (2)

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
Message-ID: (view raw, whole thread or download thread mbox)
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


pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group