pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Remove secondary checkpoint
13+ messages / 9 participants
[nested] [flat]
Commits from this thread:
2018-02-07 b98a7cd58f Update out-of-date comment in StartupXLOG.
* pgsql: Remove secondary checkpoint
@ 2017-11-07 17:57 Simon Riggs <simon@2ndQuadrant.com>
2017-11-07 18:01 ` Re: pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
2017-11-11 17:28 ` Re: pgsql: Remove secondary checkpoint Andreas Seltenreich <seltenreich@gmx.de>
2018-02-06 21:42 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Thomas Munro <thomas.munro@enterprisedb.com>
0 siblings, 3 replies; 13+ messages in thread
From: Simon Riggs @ 2017-11-07 17:57 UTC (permalink / raw)
To: pgsql-committers
Remove secondary checkpoint
Previously server reserved WAL for last two checkpoints,
which used too much disk space for small servers.
Bumps PG_CONTROL_VERSION
Author: Simon Riggs <simon@2ndQuadrant.com>
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4b0d28de06b28e57c540fca458e4853854fbeaf8
Modified Files
--------------
doc/src/sgml/backup.sgml | 2 +-
doc/src/sgml/func.sgml | 5 --
src/backend/access/transam/xlog.c | 93 ++++++++-------------------------
src/backend/utils/misc/pg_controldata.c | 79 +++++++++++++---------------
src/bin/pg_controldata/pg_controldata.c | 3 --
src/bin/pg_resetwal/pg_resetwal.c | 1 -
src/include/catalog/pg_control.h | 3 +-
src/include/catalog/pg_proc.h | 2 +-
8 files changed, 62 insertions(+), 126 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
@ 2017-11-07 18:01 ` Andres Freund <andres@anarazel.de>
2017-11-07 19:12 ` Re: pgsql: Remove secondary checkpoint Tom Lane <tgl@sss.pgh.pa.us>
2 siblings, 1 reply; 13+ messages in thread
From: Andres Freund @ 2017-11-07 18:01 UTC (permalink / raw)
To: Simon Riggs <simon@2ndQuadrant.com>; +Cc: pgsql-committers
On 2017-11-07 17:57:31 +0000, Simon Riggs wrote:
> Remove secondary checkpoint
>
> Previously server reserved WAL for last two checkpoints,
> which used too much disk space for small servers.
>
> Bumps PG_CONTROL_VERSION
FWIW, I don't think this should be applied without a pg_resetxlog
feature allowing to manually use older checkpoints.
Greetings,
Andres Freund
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2017-11-07 18:01 ` Re: pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
@ 2017-11-07 19:12 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-11-07 19:14 ` Re: pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 13+ messages in thread
From: Tom Lane @ 2017-11-07 19:12 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Simon Riggs <simon@2ndQuadrant.com>; pgsql-committers
Andres Freund <andres@anarazel.de> writes:
> On 2017-11-07 17:57:31 +0000, Simon Riggs wrote:
>> Remove secondary checkpoint
> FWIW, I don't think this should be applied without a pg_resetxlog
> feature allowing to manually use older checkpoints.
Uh, what? We have never before insisted on pg_resetxlog being able
to use WAL across a WAL format change, and there have been many of
those.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2017-11-07 18:01 ` Re: pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
2017-11-07 19:12 ` Re: pgsql: Remove secondary checkpoint Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-11-07 19:14 ` Andres Freund <andres@anarazel.de>
2017-11-07 19:43 ` Re: pgsql: Remove secondary checkpoint Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 13+ messages in thread
From: Andres Freund @ 2017-11-07 19:14 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndQuadrant.com>; pgsql-committers
On 2017-11-07 14:12:19 -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2017-11-07 17:57:31 +0000, Simon Riggs wrote:
> >> Remove secondary checkpoint
>
> > FWIW, I don't think this should be applied without a pg_resetxlog
> > feature allowing to manually use older checkpoints.
>
> Uh, what? We have never before insisted on pg_resetxlog being able
> to use WAL across a WAL format change, and there have been many of
> those.
I think you misunderstand my point - I'm saying that pg_resetxlog should
be able to force the use of older checkpoints, basically as a fallback
to cases where the previous approach might actually have worked, not
that it needs to work across format changes.
Greetings,
Andres Freund
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2017-11-07 18:01 ` Re: pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
2017-11-07 19:12 ` Re: pgsql: Remove secondary checkpoint Tom Lane <tgl@sss.pgh.pa.us>
2017-11-07 19:14 ` Re: pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
@ 2017-11-07 19:43 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-11-08 00:19 ` Re: pgsql: Remove secondary checkpoint Michael Paquier <michael.paquier@gmail.com>
0 siblings, 1 reply; 13+ messages in thread
From: Tom Lane @ 2017-11-07 19:43 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Simon Riggs <simon@2ndQuadrant.com>; pgsql-committers
Andres Freund <andres@anarazel.de> writes:
> I think you misunderstand my point - I'm saying that pg_resetxlog should
> be able to force the use of older checkpoints, basically as a fallback
> to cases where the previous approach might actually have worked, not
> that it needs to work across format changes.
That seems like a completely separate feature --- and one of dubious
value, frankly. The further back you go, the less likely it'd be
to work.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2017-11-07 18:01 ` Re: pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
2017-11-07 19:12 ` Re: pgsql: Remove secondary checkpoint Tom Lane <tgl@sss.pgh.pa.us>
2017-11-07 19:14 ` Re: pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
2017-11-07 19:43 ` Re: pgsql: Remove secondary checkpoint Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-11-08 00:19 ` Michael Paquier <michael.paquier@gmail.com>
0 siblings, 0 replies; 13+ messages in thread
From: Michael Paquier @ 2017-11-08 00:19 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andres Freund <andres@anarazel.de>; Simon Riggs <simon@2ndquadrant.com>; pgsql-committers
On Wed, Nov 8, 2017 at 4:43 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Andres Freund <andres@anarazel.de> writes:
>> I think you misunderstand my point - I'm saying that pg_resetxlog should
>> be able to force the use of older checkpoints, basically as a fallback
>> to cases where the previous approach might actually have worked, not
>> that it needs to work across format changes.
>
> That seems like a completely separate feature --- and one of dubious
> value, frankly. The further back you go, the less likely it'd be
> to work.
Because the less guarantees you would have to reach a consistent point
with a non-corrupted instance. I think that Andres' idea here are
worth debating though. Why not just spawning a new thread on the
matter and summarize what you have in mind?
--
Michael
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
@ 2017-11-11 17:28 ` Andreas Seltenreich <seltenreich@gmx.de>
2017-11-20 13:38 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Amit Kapila <amit.kapila16@gmail.com>
2 siblings, 1 reply; 13+ messages in thread
From: Andreas Seltenreich @ 2017-11-11 17:28 UTC (permalink / raw)
To: Simon Riggs <simon@2ndQuadrant.com>; +Cc: pgsql-committers@postgresql.org, Michael Paquier <michael.paquier@gmail.com>
Hi,
sqlsmith doesn't like commit 4b0d28de06:
,----
| regression=> select * from pg_control_checkpoint();
| server closed the connection unexpectedly
| TRAP: FailedAssertion("!((atti->attalign) == 's')", File: "heaptuple.c", Line: 126)
`----
On a build with assertions disabled, the statement fails with an error
instead:
,----
| regression=> select * from pg_control_checkpoint();
| ERROR: function return row and query-specified return row do not match
| DETAIL: Returned row contains 19 attributes, but query expects 18.
`----
The attached patch fixes it for me.
regards,
Andreas
Attachments:
0001-Fix-pg_control_checkpoint.patch (text/x-diff, 0B) download
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: [COMMITTERS] pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2017-11-11 17:28 ` Re: pgsql: Remove secondary checkpoint Andreas Seltenreich <seltenreich@gmx.de>
@ 2017-11-20 13:38 ` Amit Kapila <amit.kapila16@gmail.com>
2017-11-20 20:50 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndquadrant.com>
0 siblings, 1 reply; 13+ messages in thread
From: Amit Kapila @ 2017-11-20 13:38 UTC (permalink / raw)
To: Andreas Seltenreich <seltenreich@gmx.de>; +Cc: Simon Riggs <simon@2ndquadrant.com>; pgsql-committers; Michael Paquier <michael.paquier@gmail.com>
On Sat, Nov 11, 2017 at 10:58 PM, Andreas Seltenreich
<seltenreich@gmx.de> wrote:
> Hi,
>
> sqlsmith doesn't like commit 4b0d28de06:
>
> ,----
> | regression=> select * from pg_control_checkpoint();
> | server closed the connection unexpectedly
> | TRAP: FailedAssertion("!((atti->attalign) == 's')", File: "heaptuple.c", Line: 126)
> `----
>
> On a build with assertions disabled, the statement fails with an error
> instead:
>
> ,----
> | regression=> select * from pg_control_checkpoint();
> | ERROR: function return row and query-specified return row do not match
> | DETAIL: Returned row contains 19 attributes, but query expects 18.
> `----
>
> The attached patch fixes it for me.
>
Your patch looks correct to me. I can reproduce the problem and
verified that patch fixes the problem. It is better to track this in
CF if not already tracked.
--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: [COMMITTERS] pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2017-11-11 17:28 ` Re: pgsql: Remove secondary checkpoint Andreas Seltenreich <seltenreich@gmx.de>
2017-11-20 13:38 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Amit Kapila <amit.kapila16@gmail.com>
@ 2017-11-20 20:50 ` Simon Riggs <simon@2ndquadrant.com>
2017-11-20 20:55 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 13+ messages in thread
From: Simon Riggs @ 2017-11-20 20:50 UTC (permalink / raw)
To: Amit Kapila <amit.kapila16@gmail.com>; +Cc: Andreas Seltenreich <seltenreich@gmx.de>; pgsql-committers; Michael Paquier <michael.paquier@gmail.com>
On 20 November 2017 at 08:38, Amit Kapila <amit.kapila16@gmail.com> wrote:
> On Sat, Nov 11, 2017 at 10:58 PM, Andreas Seltenreich
> <seltenreich@gmx.de> wrote:
>> Hi,
>>
>> sqlsmith doesn't like commit 4b0d28de06:
>>
>> ,----
>> | regression=> select * from pg_control_checkpoint();
>> | server closed the connection unexpectedly
>> | TRAP: FailedAssertion("!((atti->attalign) == 's')", File: "heaptuple.c", Line: 126)
>> `----
>>
>> On a build with assertions disabled, the statement fails with an error
>> instead:
>>
>> ,----
>> | regression=> select * from pg_control_checkpoint();
>> | ERROR: function return row and query-specified return row do not match
>> | DETAIL: Returned row contains 19 attributes, but query expects 18.
>> `----
>>
>> The attached patch fixes it for me.
>>
>
>
> Your patch looks correct to me. I can reproduce the problem and
> verified that patch fixes the problem. It is better to track this in
> CF if not already tracked.
What email and patch is this referring to?
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: [COMMITTERS] pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2017-11-11 17:28 ` Re: pgsql: Remove secondary checkpoint Andreas Seltenreich <seltenreich@gmx.de>
2017-11-20 13:38 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Amit Kapila <amit.kapila16@gmail.com>
2017-11-20 20:50 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndquadrant.com>
@ 2017-11-20 20:55 ` Andres Freund <andres@anarazel.de>
2017-11-20 21:11 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndquadrant.com>
0 siblings, 1 reply; 13+ messages in thread
From: Andres Freund @ 2017-11-20 20:55 UTC (permalink / raw)
To: Simon Riggs <simon@2ndquadrant.com>; +Cc: Amit Kapila <amit.kapila16@gmail.com>; Andreas Seltenreich <seltenreich@gmx.de>; pgsql-committers; Michael Paquier <michael.paquier@gmail.com>
On 2017-11-20 15:50:40 -0500, Simon Riggs wrote:
> On 20 November 2017 at 08:38, Amit Kapila <amit.kapila16@gmail.com> wrote:
> > Your patch looks correct to me. I can reproduce the problem and
> > verified that patch fixes the problem. It is better to track this in
> > CF if not already tracked.
>
> What email and patch is this referring to?
https://www.postgresql.org/message-id/878tfcsp1t.fsf@ansel.ydns.eu
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: [COMMITTERS] pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2017-11-11 17:28 ` Re: pgsql: Remove secondary checkpoint Andreas Seltenreich <seltenreich@gmx.de>
2017-11-20 13:38 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Amit Kapila <amit.kapila16@gmail.com>
2017-11-20 20:50 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndquadrant.com>
2017-11-20 20:55 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Andres Freund <andres@anarazel.de>
@ 2017-11-20 21:11 ` Simon Riggs <simon@2ndquadrant.com>
0 siblings, 0 replies; 13+ messages in thread
From: Simon Riggs @ 2017-11-20 21:11 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Amit Kapila <amit.kapila16@gmail.com>; Andreas Seltenreich <seltenreich@gmx.de>; pgsql-committers; Michael Paquier <michael.paquier@gmail.com>
On 20 November 2017 at 15:55, Andres Freund <andres@anarazel.de> wrote:
> On 2017-11-20 15:50:40 -0500, Simon Riggs wrote:
>> On 20 November 2017 at 08:38, Amit Kapila <amit.kapila16@gmail.com> wrote:
>> > Your patch looks correct to me. I can reproduce the problem and
>> > verified that patch fixes the problem. It is better to track this in
>> > CF if not already tracked.
>>
>> What email and patch is this referring to?
>
> https://www.postgresql.org/message-id/878tfcsp1t.fsf@ansel.ydns.eu
Apologies to Andreas, I didn't receive that email
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: [COMMITTERS] pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
@ 2018-02-06 21:42 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-02-07 13:51 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Robert Haas <robertmhaas@gmail.com>
2 siblings, 1 reply; 13+ messages in thread
From: Thomas Munro @ 2018-02-06 21:42 UTC (permalink / raw)
To: Simon Riggs <simon@2ndquadrant.com>; +Cc: pgsql-committers
On Wed, Nov 8, 2017 at 6:57 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
> Remove secondary checkpoint
I think this comment in xlog.c was missed:
- /*
- * Get the last valid checkpoint record. If the
latest one according
- * to pg_control is broken, try the next-to-last one.
- */
+ /* Get the last valid checkpoint record. */
--
Thomas Munro
http://www.enterprisedb.com
Attachments:
comment.patch (application/octet-stream, 628B) download
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index e42b828edf..18b7471597 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -6563,10 +6563,7 @@ StartupXLOG(void)
StandbyMode = true;
}
- /*
- * Get the last valid checkpoint record. If the latest one according
- * to pg_control is broken, try the next-to-last one.
- */
+ /* Get the last valid checkpoint record. */
checkPointLoc = ControlFile->checkPoint;
RedoStartLSN = ControlFile->checkPointCopy.redo;
record = ReadCheckpointRecord(xlogreader, checkPointLoc, 1, true);
^ permalink raw reply [nested|flat] 13+ messages in thread
* Re: [COMMITTERS] pgsql: Remove secondary checkpoint
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2018-02-06 21:42 ` Re: [COMMITTERS] pgsql: Remove secondary checkpoint Thomas Munro <thomas.munro@enterprisedb.com>
@ 2018-02-07 13:51 ` Robert Haas <robertmhaas@gmail.com>
0 siblings, 0 replies; 13+ messages in thread
From: Robert Haas @ 2018-02-07 13:51 UTC (permalink / raw)
To: Thomas Munro <thomas.munro@enterprisedb.com>; +Cc: Simon Riggs <simon@2ndquadrant.com>; pgsql-committers
On Tue, Feb 6, 2018 at 4:42 PM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> On Wed, Nov 8, 2017 at 6:57 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> Remove secondary checkpoint
>
> I think this comment in xlog.c was missed:
>
> - /*
> - * Get the last valid checkpoint record. If the
> latest one according
> - * to pg_control is broken, try the next-to-last one.
> - */
> + /* Get the last valid checkpoint record. */
Committed.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 13+ messages in thread
end of thread, other threads:[~2018-02-07 13:51 UTC | newest]
Thread overview: 13+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07 17:57 pgsql: Remove secondary checkpoint Simon Riggs <simon@2ndQuadrant.com>
2017-11-07 18:01 ` Andres Freund <andres@anarazel.de>
2017-11-07 19:12 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-11-07 19:14 ` Andres Freund <andres@anarazel.de>
2017-11-07 19:43 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-11-08 00:19 ` Michael Paquier <michael.paquier@gmail.com>
2017-11-11 17:28 ` Andreas Seltenreich <seltenreich@gmx.de>
2017-11-20 13:38 ` Amit Kapila <amit.kapila16@gmail.com>
2017-11-20 20:50 ` Simon Riggs <simon@2ndquadrant.com>
2017-11-20 20:55 ` Andres Freund <andres@anarazel.de>
2017-11-20 21:11 ` Simon Riggs <simon@2ndquadrant.com>
2018-02-06 21:42 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-02-07 13:51 ` Robert Haas <robertmhaas@gmail.com>
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