Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dI0uF-0007zF-1M for pgsql-admin@arkaria.postgresql.org; Mon, 05 Jun 2017 22:55:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dI0uE-0007b3-3S for pgsql-admin@arkaria.postgresql.org; Mon, 05 Jun 2017 22:55:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dI0sR-0004JU-On for pgsql-admin@postgresql.org; Mon, 05 Jun 2017 22:53:35 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dI0sO-0001ds-FC for pgsql-admin@postgresql.org; Mon, 05 Jun 2017 22:53:35 +0000 Received: by mail-lf0-x241.google.com with SMTP id x81so5170513lfb.3 for ; Mon, 05 Jun 2017 15:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=Auw6Mgn0rXRvHAv39LWEN5WMue7ArAe+MrOe6NNBCJk=; b=J3UDJZ+30OqmK+XAZSH0RZJ3COp+pw6uMpuIn66eexXqChIbslMr6PKZMgaM1j2Hkk K0hIxEauQDiIQH9EMt1SZe9kcumYyPG5UdIupuuIeJeSvBNo5FHJgZlsnjLuYHrB/QaJ ZyNS0j5sJiQGtet8U+YpmR0mnOBaiXEGH9PbX0D6mg0J4lBid0A8enwF0T66XUWflDey +1IsvWTqE9bdEC+Owc4mthfK7P5isbHPJBgCctmip69qYmJpG6UhhIwJ7IWzEy3eeBeZ yIf13+zfAX7rvInCmKhMdREnC7IZ33Z4pHr8fvDt46gDDG6T8M5BP53dxmMwhtyyPur3 oUZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=Auw6Mgn0rXRvHAv39LWEN5WMue7ArAe+MrOe6NNBCJk=; b=P3GW3LoCBLAVdkc3o8xYc4o4S/4hDMcJEj/nxH/rFRonXN93mUnlsH2J4wd8MiLRXB F1fbU2ny7cdfarOgIAcRvfZxOv3bKUMA0v3DiTFiG5jzXUEHNjaeYnTjaiYnwsNHphhF vOLXQS/eZeSK7qfzADFyy/Uq0SsiizdKtCASBIV+gzxcwx8HtRvkzmoeNu8ckN8/UtXc 6Hw/x6lpLzwbrBZyLF7zUvEysn3k80pXfnPIpq4xwiF2EMahyKZiSHeFstZCt7TAZJZs uPE9e/CM1mfTULQPwoCVMsYwb9E5pOljVZm+mNI0z+iFE11IkXLbbLSvSGuxKf3rME2I OQfw== X-Gm-Message-State: AODbwcCHc5QN+AV23dIzL9Blm2bgIF1VPgK+JcRGLZxnbKncuRXB0nGl gRiLCbmeHZrKbSBTe+Y= X-Received: by 10.46.92.134 with SMTP id q128mr1560820ljb.77.1496703211095; Mon, 05 Jun 2017 15:53:31 -0700 (PDT) Received: from seb.koffice.internal ([81.1.163.70]) by smtp.gmail.com with ESMTPSA id f93sm7242947lji.19.2017.06.05.15.53.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Jun 2017 15:53:30 -0700 (PDT) From: Sergey Burladyan To: pgsql-admin@postgresql.org Subject: Questions about upgrade standby with rsync Date: Tue, 06 Jun 2017 01:53:29 +0300 Message-ID: <87tw3uvyfq.fsf@seb.koffice.internal> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hello, all! I have problem with upgrading standby via rsync. Documentation https://www.postgresql.org/docs/9.5/static/pgupgrade.html say: > Verify that the "Latest checkpoint location" values match in all clusters. But it is impossible for "WAL archive only" standby, if I not mistaken. Standby can make restartpoint only at master checkpoint location, because s= tandby cannot write WALs. When standby use only WAL archive, without streaming replication, last WAL = from master with shutdown checkpoint record do not archived. I think may be because WAL archiving process alread= y terminated, when last WAL switched. For example: =3D=3D=3D=3D standby log =3D=3D=3D 2017-06-01 13:09:25 GMT LOG: recovery restart point at 0/3000790 2017-06-01 13:09:26 GMT LOG: recovery restart point at 0/603FB10 2017-06-01 13:09:27 GMT LOG: recovery restart point at 0/903ED28 2017-06-01 13:09:33 GMT LOG: recovery restart point at 0/C03EFF0 2017-06-01 13:09:38 GMT LOG: recovery restart point at 0/F040E28 now stop master and then standby: =3D=3D=3D=3D master control data after shutdown =3D=3D=3D = =3D=3D=3D=3D standby control data after shutdown =3D=3D=3D Latest checkpoint location: 0/12000020 Latest che= ckpoint location: 0/110402A8 Prior checkpoint location: 0/110402A8 Prior chec= kpoint location: 0/D067A00 Latest checkpoint's REDO location: 0/12000020 Latest che= ckpoint's REDO location: 0/F040E28 Latest checkpoint's TimeLineID: 1 Latest che= ckpoint's TimeLineID: 1 Latest checkpoint's full_page_writes: on Latest che= ckpoint's full_page_writes: on Latest checkpoint's NextXID: 0/1267 Latest che= ckpoint's NextXID: 0/1267 Latest checkpoint's NextOID: 16393 Latest che= ckpoint's NextOID: 24576 Latest checkpoint's NextMultiXactId: 1 Latest che= ckpoint's NextMultiXactId: 1 Latest checkpoint's NextMultiOffset: 0 Latest che= ckpoint's NextMultiOffset: 0 Latest checkpoint's oldestXID: 1254 Latest che= ckpoint's oldestXID: 1254 Latest checkpoint's oldestXID's DB: 1 Latest che= ckpoint's oldestXID's DB: 1 Latest checkpoint's oldestActiveXID: 0 Latest che= ckpoint's oldestActiveXID: 1266 Time of latest checkpoint: Thu Jun 1 16:09:32 2017 Time of la= test checkpoint: Thu Jun 1 16:09:30 2017 Minimum recovery ending location: 0/0 Minimum re= covery ending location: 0/12000000 As you can see, when standby was run =E2=80=94 it was consistent with maste= r: "Minimum recovery ending location: 0/12000000" but it last restartpoint is previous checkpoint (from master), because last= WAL (000000010000000000000012) from master do not archived: =3D=3D=3D=3D xlogdump =3D=3D=3D=3D m/9.2/pg_xlog/000000010000000000000012: [page:0, xlp_info:6, xlp_tli:1, xlp_pageaddr:0/12000000] XLP_LONG_HEADER XL= P_BKP_REMOVABLE=20 Unexpected page info flags 0006 at offset 0 [cur:0/12000020, xid:0, rmid:0(XLOG), len/tot_len:64/96, info:0, prev:0/113= 87BB8] checkpoint: redo 0/12000020; tli 1; nextxid 1267; nextoid 16393; nextmulti 1; nextoffset 0; = shutdown at 2017-06-01 16:09:32 MSK ReadRecord: record with zero len at 0/12000080 This WAL file is only at master pg_xlog, and not in WAL archive. And my second question, this algorithm with rsync described only starting f= rom pg 9.5, is it possible to use it for upgrade from pg 9.2 to pg 9.4? Thanks! --=20 Sergey Burladyan --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin