Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlr7P-0008BA-LQ for pgsql-admin@arkaria.postgresql.org; Thu, 18 Jun 2020 09:45:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jlr7N-0002kz-CV for pgsql-admin@arkaria.postgresql.org; Thu, 18 Jun 2020 09:45:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlr7N-0002kj-27 for pgsql-admin@lists.postgresql.org; Thu, 18 Jun 2020 09:45:57 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jlr7F-0005j0-Sj for pgsql-admin@lists.postgresql.org; Thu, 18 Jun 2020 09:45:56 +0000 Received: by mail-ed1-x533.google.com with SMTP id o26so4393753edq.0 for ; Thu, 18 Jun 2020 02:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=iuPiXiMOK6jUYN8ypcgNkOmaMicDvMBrkQLwzZFv1Yk=; b=JzfSfiiGnjtHLezxMD1/UMqLBpP7GPrl90zRzl2ndp8LlBqiLdwxhLERhKGXTocTCV 8S9cVpCJJCHtoW/iESzzZf4TyifZHY+75mT42l1jvg8Jla1KkdwhCqFDqizI1ih/+v3t u0YIyaXrU5bIjm2+Rhb0dQFnZyKsS4Xts1hNK5Ub7Pf6e4yEGChI/iWDnQZ0E9/TxBZF gT8oqXZi7k+rz/LCr6wHcptv13SQ+hfb2aEI2QWJ3kzLHD16pEmiJFEgm9xICgce769+ 5l9rX8O7dri55M8QxPhTflYb528yj05xXJr77/3m23Szpge0GN7L5ZMFNUp+nhYDnRdF FgwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=iuPiXiMOK6jUYN8ypcgNkOmaMicDvMBrkQLwzZFv1Yk=; b=d1Bc3041Ex8Q2/M9qx/Xl8KWjVZibhxdrYHvBOrVoGyNJf2SHdyj5c5GTZT+VJ1+Ow HTSP57jFxYNpT8exz96bewL7xudiJociS5GKwBy5h1VEHOoF7FiNQCGRr/qyznVpfUR2 yHiWulIMR4d4MFJdHApZcSi7baxQhV3auEZJLT9Dmzij40eJLUuIiP60NxxUtNd8uIff jOEGGvyagcePp7iOFtWYKag/oEUUVS4e3xpcH/rluxX18qaXtxZ97fFjX8ekCJ4vMx5z LXdXSDi/JxUVU62WyRsSHcoc/MWvYi5W4OnyDi8T6GBTQV//9v4GQMebb7pxbIkhs1G8 t/oQ== X-Gm-Message-State: AOAM532taKFzylj9zD+zdHnBv/pp5JwbfoW8qLzGwVlKz2SWWHswhOpu LFMeSzZ0z+BtayarnVCEGA8= X-Google-Smtp-Source: ABdhPJxgm63UmiX37TYwwvOLEPmDuAokEPJfx5J3Jik1y3Mrfoo2qpn1e/w8K2WfRnqNDvKJ+plegA== X-Received: by 2002:a50:9fc2:: with SMTP id c60mr3304148edf.319.1592473548776; Thu, 18 Jun 2020 02:45:48 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id n6sm1680644edv.24.2020.06.18.02.45.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2020 02:45:48 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: old and new pg_controldata WAL segment sizes are invalid or do not match From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: Date: Thu, 18 Jun 2020 11:45:47 +0200 Cc: pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: ram pratap maurya X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi ram, > On 17. Jun, 2020, at 23:05, ram pratap maurya = wrote: > old and new pg_controldata WAL segment sizes are invalid or do not = match > Failure, exiting delete the *new* PostgreSQL cluster (it should be empty anyway) and = reinitialize it setting the wal-segsize to the same as the old cluster: $ initdb --wal-segsize=3D ... (see https://www.postgresql.org/docs/current/app-initdb.html) Then perform the upgrade as you tried before. After that, you can, if you want, reset the size to a new one using = pg_resetwal. But make sure you first do a really clean backup! $ pg_resetwal --wal-segsize=3D ... (see https://www.postgresql.org/docs/current/app-pgresetwal.html) But know what you're doing! Try on a test database first to see how it = works. Cheers, Paul=