Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKiyl-0004ea-4h for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 11:27:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fKiyh-000519-0x for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 11:27:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKiyg-00050u-HN for pgsql-general@lists.postgresql.org; Mon, 21 May 2018 11:27:46 +0000 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fKiyY-0000on-EG for pgsql-general@postgresql.org; Mon, 21 May 2018 11:27:45 +0000 Received: by mail-pl0-x244.google.com with SMTP id u6-v6so8643386pls.9 for ; Mon, 21 May 2018 04:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=hht9kzt9D3ri5VarOL99/qK2ijzo3MhvU/eMX8wLU34=; b=dmygnoTrcQLHpbB5n022ZYWbUDhi61BQxA8iFJ5iSmI364Q701mlMH0jVyVoWqn2g/ 0NPvTJialBu/p2Sgoi9LBilV/91/BRKKU38PHtZgrYXMTZqaaol7inBimXjqaEWWnX4s 2aDYC8RKpzgtSYcttTnzRDwTKMWAa142LLtio2mds3xCkINpH5vNKa3JH9y8ot6YLgW/ wIn4lPEEbUCXbQzn8bmSVtAzdQNEArhKUavVFZMgBOr5t0geCHvw6va4f6fOZyfO4YEn VqGO/yERrcfsCbfbPZMikyuxmZUnhRnR5f6Wgtu14Vh+4SfpdhA9sRvlL2N/TtQvcrk/ qsmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hht9kzt9D3ri5VarOL99/qK2ijzo3MhvU/eMX8wLU34=; b=WVuXOwOb12JaZ07OXl0VkTOi8o/xHohq4H2mfLa2r7mIVrP+yN2NYKlBlhork4iRSE LLNrGFLdiBvGx8nzH603ut4cGF9tAzeyTqNv7SBbLL9IbKeU64HmHQ1snJrpg0wDJyKo J21x1oExaCjE+m8p16dYe6UqTvpbmJaFUka0CuVsEZ3msteldDt/LJM1NW1mpt5nivQY A1lBgnjE2joGDzqR8scIKNw4n6oWV9BNIRnKzbtwgEj/AFhjPNBBWqhliLkTAbGjzAtC YrbK350y1+vUjSfz3nDW17xIx/C3+cxhY31+t/nxOsKRfTZJM8zZefx2S558lYyFnN6U XHNQ== X-Gm-Message-State: ALKqPwdu5oszhU6lNmcRfutGeG8GMEyXDyu4/i8kPGsBQ/KVDuvFHRA2 5IKHsXraSUorkwdNvTyuaufC1dfXxxhrfq/Ot5tABPbr0Y0M3jotIg1F1fhH7z7C7RDD3fqLqUS zEGSi2ZP1mB5XApQVnuMFXfi7zEGwSQhP5G+BTi1ccXevc45aovjP14bQANGB9BxDcYl8eADCks yseeOgtTQ= X-Google-Smtp-Source: AB8JxZpJgn+yspI2z5ekIqcQYF3iwcuvGD2qegkoGI14PkJSCjcjWValp0LxkUodGW2WVHPu4TzXkw== X-Received: by 2002:a17:902:3c5:: with SMTP id d63-v6mr19791036pld.163.1526902055233; Mon, 21 May 2018 04:27:35 -0700 (PDT) Received: from osaka.octopusnet (p4600172-ipngn26001marunouchi.tokyo.ocn.ne.jp. [122.26.228.172]) by smtp.gmail.com with ESMTPSA id 29-v6sm24073476pfj.14.2018.05.21.04.27.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 04:27:33 -0700 (PDT) Subject: Re: Streaming Replication between PostGreSQL 9.2.2 on Red Hat and PostGreSQL 9.2.24 on Debian To: Jonatan Evald Buus , pgsql-general@postgresql.org References: From: Ian Barwick Message-ID: Date: Mon, 21 May 2018 20:27:30 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 05/21/2018 07:18 PM, Jonatan Evald Buus wrote: > Hi there, > > I'm trying to configure streaming replication between a Red Hat server > running PostGreSQL 9.2.2 and a Debian server running PostGreSQL 9.2.24 > with Hot Standby enabled. > > While the base backup works fine using /pg_basebackup/, I get the following > errors with hot standby enabled on the Debian slave when starting PostGreSQL: > /WARNING: WAL was generated with wal_level=minimal, data may be missing/ > /HINT: This happens if you temporarily set wal_level=minimal without taking a new base backup./ > /FATAL: hot standby is not possible because wal_level was not set to "hot_standby" on the master server/ > /HINT: Either set wal_level to "hot_standby" on the master, or turn off hot_standby here/ > > If I turn Hot Standby off on the Debian Slave I get the following errors: > /FATAL: database system identifier differs between the primary and standby/ > /DETAIL: The primary's identifier is 5940475598986796885, the standby's identifier is 6557962695089036503./ The standby clearly hasn't been cloned from the primary, otherwise the identifiers would be the same. Are you sure the PostgreSQL instance running on the standby is the one you backed up with pg_basebackup? Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services