On Sat, Nov 7, 2009 at 10:57 AM, Jeff Davis <pgsql@xxxxxxxxxxx> wrote: > On Sat, 2009-11-07 at 09:23 -0700, Scott Marlowe wrote: >> I already asked this basic question on the slony mailing lists, but >> they seem kinda quiet this week. >> >> So, I've got a database with about 30,000 objects in it, and running >> the setaddtable() function is taking about 30 seconds, and spinning a >> CPU 100% while doing it. > > auto_explain may be able to help. It can automatically collect slow > queries and provide explain analyze output, even for queries inside > functions. Thanks I'll take a look. I'm afraid that I might not get much out of it if the cost is hidden by the function. But it's a start. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general