Performance bug in DO blocks - Mailing list pgsql-hackers

From Tom Lane
Subject Performance bug in DO blocks
Date
Msg-id 29244.1295376372@sss.pgh.pa.us
Whole thread Raw
Responses Re: Performance bug in DO blocks  (Robert Haas <robertmhaas@gmail.com>)
List 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:

Previous
From: Greg Smith
Date:
Subject: Re: [PERFORM] pgbench to the MAXINT
Next
From: Bruce Momjian
Date:
Subject: Re: test_fsync open_sync test