Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2A371B5DCD1 for ; Fri, 2 Sep 2011 21:25:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 06102-04 for ; Sat, 3 Sep 2011 00:25:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm10.bullet.mail.sp2.yahoo.com (nm10.bullet.mail.sp2.yahoo.com [98.139.91.80]) by mail.postgresql.org (Postfix) with SMTP id 6D63CB5DC4B for ; Fri, 2 Sep 2011 21:25:02 -0300 (ADT) Received: from [98.139.91.70] by nm10.bullet.mail.sp2.yahoo.com with NNFMP; 03 Sep 2011 00:25:01 -0000 Received: from [98.139.91.48] by tm10.bullet.mail.sp2.yahoo.com with NNFMP; 03 Sep 2011 00:25:01 -0000 Received: from [127.0.0.1] by omp1048.mail.sp2.yahoo.com with NNFMP; 03 Sep 2011 00:25:01 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 308018.40853.bm@omp1048.mail.sp2.yahoo.com Received: (qmail 79623 invoked by uid 60001); 3 Sep 2011 00:25:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1315009500; bh=nnQWTKiKd2r6ecidaTSNX0bd5DCtcAcsbnRkSfuKmVI=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=m7tXYN4ZK2Qsr7xReMFw5for54fd+uYZ7WlN44ayUiwOuADDhHQ9nr7fLYVbjcv36IcT9VhXcFUtNx0kkF2g9T8EU2CDZaoBYqHDfjg2gSCezC46tqW9lYvus7FDLwTf4QzdFuVAd9xffbAf0jaf9OavpeARll5hf1uockJAOz0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=gZ03Qug4KyKc/hda1KZYJw3fkm4/kj+zRiNxGv3ByC3EBKPsLZgwb2WAenKb6NtGzsRu11GAAPsvsdb641e5++cQzrQLWAKhbeUw11CPUt19Yr3YCPUPFk7Akayv4twv9/8iU6M/FgjCNcc/SDsEaSJTYtWphEXRSEY7zX5Xdp0=; X-YMail-OSG: sNEVoKAVM1mkAR7.rvDdWZzVlALMt03EGKN.xb3mzJIrkpj yehjKWjikxNiddd01Fn0hK1WpjhSgDJGy3wPAFeA6HH.KtEwwDdHVd4RvZrX ._5VhJBx5ENIxlM5rKoMLVGece2z1Tx0dHc6hu78pzG21zuhMxLhx2GB5C6y Yc6PaD22vJ1NBsQROoZb0_nnhn8lG5M7clz1cqqklGglT0I7U2v1uoaflt2x ev.6XtiTCawpHjDbWbt8y_glP9By.csMyYfGevWkvdQGxBdEcEMpWIABBoeP dX1paMZdiG_E8UJeIACeyvvgD5uG_a0.nMcVtHpAzO0UxzntSeP79_nuwxZR ulOBby.7iOXjNSD4vvuJxh61nBB6WgNyV_7b.IXIky4TCHY7W6N18UTOkUz6 hfKTUxy4MmUW_WtNxbLAO.pcqOzkzv97Q9uP4sC2gAG7enOeVsCKaggu39Ey 01P0- Received: from [67.188.110.104] by web112110.mail.gq1.yahoo.com via HTTP; Fri, 02 Sep 2011 17:25:00 PDT X-Mailer: YahooMailClassic/14.0.5 YahooMailWebService/0.8.113.315625 Message-ID: <1315009500.78128.YahooMailClassic@web112110.mail.gq1.yahoo.com> Date: Fri, 2 Sep 2011 17:25:00 -0700 (PDT) From: C Pond Subject: Embedded VACUUM To: pgsql-performance@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.393 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.504, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201109/25 X-Sequence-Number: 44801 I'm running a labour-intensive series of queries on a medium-sized dataset (~100,000 rows) with geometry objects and both gist and btree indices. The queries are embedded in plpgsql, and have multiple updates, inserts and deletes to the tables as well as multiple selects which require the indices to function correctly for any kind of performance. My problem is that I can't embed a vacuum analyze to reset the indices and speed up processing, and the queries get slower and slower as the un-freed space builds up.