pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: 德哥 <digoal@126.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10155: BUG? Cann't remove new generated tuples after repeatable read transaction start.
Date: Tue, 29 Apr 2014 09:55:00 +0300
Message-ID: <535F4CC4.5040806@vmware.com> (raw)
In-Reply-To: <5cfb5529.2a4.145aaa23420.Coremail.digoal@126.com>
References: <20140428083725.2656.36967@wrigleys.postgresql.org>
	<535EA3AD.6070209@vmware.com>
	<5cfb5529.2a4.145aaa23420.Coremail.digoal@126.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (4+ messages)

Message-ID: <535F4CC4.5040806@vmware.com>
Permalink:  ../535F4CC4.5040806@vmware.com/
Also on:    postgresql.org/message-id/535F4CC4.5040806@vmware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: hlinnakangas@vmware.com, digoal@126.com
  Subject: Re: BUG #10155: BUG? Cann't remove new generated tuples after repeatable read transaction start.
  In-Reply-To: <535F4CC4.5040806@vmware.com>
  References: <20140428083725.2656.36967@wrigleys.postgresql.org> <535EA3AD.6070209@vmware.com> <5cfb5529.2a4.145aaa23420.Coremail.digoal@126.com> <535F4CC4.5040806@vmware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox