Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1itpcS-0005y4-Cr for pgsql-general@arkaria.postgresql.org; Tue, 21 Jan 2020 09:14:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1itpcQ-0001tb-Uw for pgsql-general@arkaria.postgresql.org; Tue, 21 Jan 2020 09:14:42 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1itpcQ-0001tS-LH for pgsql-general@lists.postgresql.org; Tue, 21 Jan 2020 09:14:42 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1itpcO-0001Jj-9a for pgsql-general@lists.postgresql.org; Tue, 21 Jan 2020 09:14:41 +0000 Received: by mail-wr1-x432.google.com with SMTP id b6so2308728wrq.0 for ; Tue, 21 Jan 2020 01:14:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=K5Qn3eNbrVby1MOj3RMITXOO0/BNFx1/qKIw5Uz133M=; b=GFaiWOrQ3Zpe0TYNqxl2GLZL8HtccfhVN/PPfePwIrEjZmZSLpoQJ9I3sToJJ2q6Bi 7TaWlUM3wzPxdgSwlpDdnKtLfZbOeFe/EwCpNd5MFMe9oUoTB/oLvm5DXKxpq6QE9yoh Upw88xWyC0OUdmzdeOWMxGu3s2dIFjQR6PqWJxBEhtCbUGX4LP5zv9F7+xADkAFncLiG ItTKUrHcfAavushY/NgjMqSTrjN/HP4O1ncUGo5cl/tciiKr7wOfAw0Bhvo6TF3Ybl6p FB+CPRsCwbASs64fAF5VWywK6Dn02l0IGKizQtTs24FMxWgp/IihTmXNbLo3cRxjMWXZ wrNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=K5Qn3eNbrVby1MOj3RMITXOO0/BNFx1/qKIw5Uz133M=; b=kexHW8rTuWrKrtYr0fLopTH/WZu/2Dxfo8HvU9FBreYaGur5pK+HaYnTndORFz1PfJ /+tcT5XvFIIpsQPWHYk2OJShdWRo+e8iGp2Khs8SsZzYOWS6VxbJt4EZgGAlZtCOMHNC cJCcbCmwIqBsOyB+ZuhbgCcwmVnLTOP7CCEiOl8JySY+rrWHeqNU+CxwCBj8ZDLXp7NG f/VKj6L7hC5SIeIR/EunL8jNxXeTtJbgVx3bD16vjAXlwc8rrHMFtYZ5OEymavlA5FtV sN4q0qknqwYzuCoT7cDSIXmArXLUhWHBPs0Hd0CH3m+wz4kcW53zS+Wg1XEeA3KM8ucc fd6Q== X-Gm-Message-State: APjAAAUJCcP8IFTp2DY6o+EBYF7axghm/Ut8oeJAgBUGDI+vrJ52hWh3 V9tUXpfidDcCCupEggan70HejQ== X-Google-Smtp-Source: APXvYqw08jA8aOeAdQlLu9BnpiJGIyUXMuA3QfCzr2DMkYndp/xWYVdahxwCrr0w42yAvHzJdm9bgg== X-Received: by 2002:a5d:4749:: with SMTP id o9mr4056534wrs.242.1579598078898; Tue, 21 Jan 2020 01:14:38 -0800 (PST) Received: from localhost.localdomain ([212.186.219.234]) by smtp.gmail.com with ESMTPSA id e6sm53677388wru.44.2020.01.21.01.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 01:14:38 -0800 (PST) Message-ID: <78be5263a8ec9822402a3b875ff774eac2a5b010.camel@cybertec.at> Subject: Re: Questions about how to streaming replication (pg 9.2) From: Laurenz Albe To: Ekaterina Amez , pgsql-general@lists.postgresql.org Date: Tue, 21 Jan 2020 10:14:37 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 2020-01-20 at 14:59 +0100, Ekaterina Amez wrote: > PS: Just in case anyone wants to know, this is part of the process of upgrade a server with 9.2 version > that has no free space in PGDATA and that can't be stopped for much time. After asking here, the strategy > to upgrade will be: replicate this DB to a path with space to grow, switch clusters (slave becoming master > and creating a new slave to have just-in-case), and pg_upgrade slave/new master with --link option. Do not upgrade to 9.6, upgrade to at least v11. Set "wal_keep_segments" high enough on the primary for safety. Run "pg_basebackup" on the standby. Create a "recovery.conf" on the standby that has "primary_conninfo" set and "standby_mode = on". Start the standby and wait until it has caught up, then switch over. Yours, Laurenz Albe