Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf1wi-00048c-Py for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Apr 2014 06:55:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wf1wi-00066V-3I for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Apr 2014 06:55:16 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf1wh-00065i-09 for pgsql-bugs@postgresql.org; Tue, 29 Apr 2014 06:55:15 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wf1wY-0005n8-4e for pgsql-bugs@postgresql.org; Tue, 29 Apr 2014 06:55:13 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id C0EBB2A72B; Mon, 28 Apr 2014 23:55:03 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id B3C88193ED; Mon, 28 Apr 2014 23:55:03 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 644CC12002A; Mon, 28 Apr 2014 23:55:05 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Mon, 28 Apr 2014 23:55:04 -0700 (PDT) Message-ID: <535F4CC4.5040806@vmware.com> Date: Tue, 29 Apr 2014 09:55:00 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 MIME-Version: 1.0 To: =?UTF-8?B?5b635ZOl?= CC: pgsql-bugs@postgresql.org Subject: Re: BUG #10155: BUG? Cann't remove new generated tuples after repeatable read transaction start. References: <20140428083725.2656.36967@wrigleys.postgresql.org> <535EA3AD.6070209@vmware.com> <5cfb5529.2a4.145aaa23420.Coremail.digoal@126.com> In-Reply-To: <5cfb5529.2a4.145aaa23420.Coremail.digoal@126.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -7.6 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 04/29/2014 02:18 AM, 德哥 wrote: > HI, > This is so bad in pg_dump use, when a database so big. > because pg_dump is also use repeatable read isolation. and when pg_dump backup database , the database will bloat . Yep. One approach is to take a filesystem-level backup (ie. with pg_start/stop_backup() or pg_basebackup), start a second server from that backup, and run pg_dump against that. > Can we optimize it? Not easily. I'd love to do something about it, but it's going to be a long project. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs