Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TIng3-000591-Iz for pgsql-admin@postgresql.org; Mon, 01 Oct 2012 21:37:23 +0000 Received: from nm35-vm4.bullet.mail.ne1.yahoo.com ([98.138.229.100]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TIng1-0000Xb-J3 for pgsql-admin@postgresql.org; Mon, 01 Oct 2012 21:37:22 +0000 Received: from [98.138.90.52] by nm35.bullet.mail.ne1.yahoo.com with NNFMP; 01 Oct 2012 21:37:20 -0000 Received: from [98.138.89.245] by tm5.bullet.mail.ne1.yahoo.com with NNFMP; 01 Oct 2012 21:37:20 -0000 Received: from [127.0.0.1] by omp1059.mail.ne1.yahoo.com with NNFMP; 01 Oct 2012 21:37:20 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 737116.79306.bm@omp1059.mail.ne1.yahoo.com Received: (qmail 56306 invoked by uid 60001); 1 Oct 2012 21:37:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1349127440; bh=t+Khw9so2xnWPZLwHkCUm3z9oc+sezRZh4kkBm5ng7I=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bF+RfhHGIyLGWQfV/03FOrgKVin3IdaY1Z3F9vJjceOfE6s3q0X5mI/2YdtKAeZSPp9kAEzpJA6NeA7gZgapFYd1gDLL9sOcaCQcWffHJ3FBsiSIE+3ilyPgtkMhRa//9bqzP1whxOmgoF/z5J/O3yIX9vu6T296gkPgx/MN/pA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=GE3ZPV85T/yIVlGYNQUW0W5m2ppkWgN96qHmDr8S+TXaP9VvuHa9bUKnBfZ1qRR0zMca/Ye+NJgS6+Rx1S6STt+xdQSH5Re3dDW0jHWzw5bsbWyeLXZbHVlUr/LoLdPbOkSuUt/YMiqi+nPuWEOaayrsPnUXHNYO7NwsrBTwhD8=; X-YMail-OSG: sU7ZREEVM1k87rIpeqVN80kSZItC5IPap9V_gGq6vLHwdZf gSr_orYK2FNHKEqKBadq5MGHoKThT1KmhwOyfgN3MB_1iIy9OX42qSvwCVvl lLdYFQZh_1DwNFgCGSekzHGuFCKmfS01IDJg0qA0YrSBu3.hsFarUGs1gcW0 Qf8GVTcBa64lF81UvvfqXoHKbzKezfi76fj2_VSaDdp4CQqRPeUmwSdpzfXd X8CnbpikaEj1LOK2roXdoJ6SNsRwIJwWrrqjGf0GmmWim9PeIC1Vjmewa6zb 3Nq4Q4b2qXOTZRGVrxgRnMv2qclgTNw__LgwdHy0x.fqqO3chQM7ZxkoXtW. 8AcXpWpYV8STYM2Zj1PxLSDZAPP1GfrdhwqP3qavPGKPRN3OTxNj6679_kbW NgIdWTzbzPUHMO6Y.GKGLs7cvmshHiLhH.qh1Cf2rAaEmE8XkMXUVqecuPGT URgJ_W4YKkLKUJiCm.VvI.swAT5IiUp9eyv5Wb.b6dU6Hjw-- Received: from [199.9.251.45] by web125904.mail.ne1.yahoo.com via HTTP; Mon, 01 Oct 2012 14:37:20 PDT X-Mailer: YahooMailWebService/0.8.122.442 References: <1348783559.78739.YahooMailNeo@web125906.mail.ne1.yahoo.com> <5064D7BC.1000709@pinpointresearch.com> <1348797684.2846.YahooMailNeo@web125904.mail.ne1.yahoo.com> <18883255.471348798791198.OPEN-XCHANGE.WebMail.tomcat@moxie.iii.com> Message-ID: <1349127440.56154.YahooMailNeo@web125904.mail.ne1.yahoo.com> Date: Mon, 1 Oct 2012 14:37:20 -0700 (PDT) From: Greg Williamson Reply-To: Greg Williamson Subject: Re: Database size stays constant but disk space keeps shrinking -- postgres 9.1 Cc: "pgsql-admin@postgresql.org" In-Reply-To: <18883255.471348798791198.OPEN-XCHANGE.WebMail.tomcat@moxie.iii.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 2.2 (++) X-Archive-Number: 201210/5 X-Sequence-Number: 40121 Dinesh --=0A=0A=0A----- Original Message -----=0A> From: Dinesh Bhandary =0A> To: Greg Williamson =0A> Cc: = "pgsql-admin@postgresql.org" =0A> Sent: Thursda= y, September 27, 2012 7:19 PM=0A> Subject: Re: [ADMIN] Database size stays = constant but disk space keeps shrinking -- postgres 9.1=0A> =0A> =0A> I'd a= lso keep track of tmp directory while building. I hope it is not=0A> creati= ng a huge external sort file. By building you meant to say=0A> pg_restore, = I assume.=0A=0AActually everything is done a single SQL commands; the DDL f= rom the source gets run on the new database, and then we do a series of SQL= commands. The tmp space doesn't seem to get hit as there are only a few so= rts being run as we reduce a list of "users from" and "users to" to a singl= e list of unique user ids.=0A=0A> How big is your maintenance_work_mem? Ind= ex creation pools memory from=0A> this buffer.=A0=0A=0A=0Amaintenance_work_= mem =3D 1500MB# min 1MB=0A=0AWhich seems to be enough for this task set.=0A= =0Apostgres@db11:~/9.1/main$ ls -lrt base/pgsql_tmp=0Atotal 0=0A=0ASomethin= g malign in one of our applications, perhaps interacting with this hourly d= rop. Still working with the developers to see what they are doing "under th= e hood."=0A=0AThanks for the suggestions!=0A=0AGreg=0A