Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id A82B62E006F for ; Tue, 29 Apr 2008 02:23:31 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 30280-06-5 for ; Tue, 29 Apr 2008 02:23:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id B6D0B2E0098 for ; Tue, 29 Apr 2008 02:20:08 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m3T5K4HT024888; Tue, 29 Apr 2008 01:20:04 -0400 (EDT) To: "Gauri Kanekar" cc: "Chris Browne" , pgsql-performance@postgresql.org Subject: Re: Replication Syatem In-reply-to: <7e4ba9550804282155u655e3ab5o38d2e659b485530d@mail.gmail.com> References: <7e4ba9550804280638ie81dc23w472785c83cd38fcf@mail.gmail.com> <60wsmh64f6.fsf@dba2.int.libertyrms.com> <7e4ba9550804282155u655e3ab5o38d2e659b485530d@mail.gmail.com> Comments: In-reply-to "Gauri Kanekar" message dated "Tue, 29 Apr 2008 10:25:10 +0530" Date: Tue, 29 Apr 2008 01:20:04 -0400 Message-ID: <24887.1209446404@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/423 X-Sequence-Number: 29916 "Gauri Kanekar" writes: > Vacuum requires exclusive lock on "table1" and if any of the background or > application is ON vacuum don't kick off. Thats the reason we need to get the > site down. As has been pointed out to you repeatedly, "vacuum" hasn't required exclusive lock since the stone age. If you are actually running a PG version in which plain "vacuum" takes exclusive lock, then no amount of replication will save you --- in particular, because no currently supported replication solution even works with PG servers that old. Otherwise, the answer is not so much "replicate" as "stop using vacuum full, and instead adopt a modern vacuuming strategy". I am not sure how much more clear we can make this to you. Replication isn't going to solve your vacuum mismanagement problem. regards, tom lane