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 1kQtxC-0000iR-0C for pgsql-admin@arkaria.postgresql.org; Fri, 09 Oct 2020 15:05:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQtwe-0004aj-S6 for pgsql-admin@arkaria.postgresql.org; Fri, 09 Oct 2020 15:04:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQtwe-0004ac-H2 for pgsql-admin@lists.postgresql.org; Fri, 09 Oct 2020 15:04:32 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kQtwa-0000H6-Uc for pgsql-admin@lists.postgresql.org; Fri, 09 Oct 2020 15:04:31 +0000 Received: by mail-wr1-x441.google.com with SMTP id t9so10637291wrq.11 for ; Fri, 09 Oct 2020 08:04:28 -0700 (PDT) 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=tBlEMnRS3wKs/9RYvvZ9GL56UXTYw6ikXMMRWD6dPMQ=; b=FJzrNVnAdmbRxkf5I1QttPova9DTy9fqKSXOUAee2vQ5NryKFHaH2T94ZwUcOIijaI sL9rIidnRDqnVijJTHy8wqdH40K59SBjV7PO7oyeNa4KcWRSKOZMHPXoIhsSApu7M76b Cy0/3282VhXlPvw0LHKJaj+u1hLgSQ4SwB8G/zU5mEysTW9y2rY5hr26yeEd1PIgYdie SgC3jt0cXR7RVptMirn68ITJrrm2Sla65jC2IgWXhGFPhkj8cuHt+AufECD+5jQNoLEb R3G0T5WN1nIB0yC7hdXNoxeCwbCFV3IEmIVrFvXEbqrdyMgGIpc6H/u5Hyk1ax//b/kM rnWw== 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=tBlEMnRS3wKs/9RYvvZ9GL56UXTYw6ikXMMRWD6dPMQ=; b=B6Rja6kDzonVZSzE3lgDYyus3Eg8dIOioND7JQnd1NtPpzaexRwy7OLh2XQmRr8ViY HaPvD3I1DtcVVRFNUvPWAMP4NNcPe755weM8GDHs6LRnFDt75GRTlBJhbNfCs58YVW8B wZsDUFdcTI3TM06I3+4BMsFxo5aCu5Fk7IOz+2Sx/qcNybe8K1EU0PDsER+HqLrl67w6 8570U/hhwVu64AYLDCioVsDOCukEPEO2jxPg0sm8N5FyAnNpTg9vIawfF1SuL3bgKMIY BXJfz4VRVfT+ES1sDNuYhUfsONDeIz4iTVyPbTkfCTB10qf3BHRS6uep1djeGhg0JOyN 6awQ== X-Gm-Message-State: AOAM532E+GbbTt5oNTfUvqF/iFt170t6xOcEO3DoyGeHig2iNjYYc5+u JV9DQQAUbLxLo0xPky5XV2UtwQ== X-Google-Smtp-Source: ABdhPJyw/68nkxg9HWmTVAq/Vhv2WJj5Ui9LRY6WGYbCR00PGRf2BXiKvJuDD4bBQSP0AKDJTIEPpQ== X-Received: by 2002:adf:fc4e:: with SMTP id e14mr15481707wrs.329.1602255865693; Fri, 09 Oct 2020 08:04:25 -0700 (PDT) Received: from localhost.localdomain (212-186-246-158.static.upcbusiness.at. [212.186.246.158]) by smtp.gmail.com with ESMTPSA id o194sm11673899wme.24.2020.10.09.08.04.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2020 08:04:25 -0700 (PDT) Message-ID: <5a3a8be1138b856f5af6b934f2f34bdd9a901a4d.camel@cybertec.at> Subject: Re: Dropping database in replica From: Laurenz Albe To: Massimo Ortensi , pgsql-admin@lists.postgresql.org Date: Fri, 09 Oct 2020 17:04:24 +0200 In-Reply-To: <1kQrX8-000DtR-G0@unimaticaspa.it> References: <1kQrX8-000DtR-G0@unimaticaspa.it> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, 2020-10-09 at 14:30 +0200, Massimo Ortensi wrote: > I have a stand-by database replicated sending wals > > In the master cluster I dropped one of the databases, but the db is > still present in the replica cluster. > > Is this normal or a misbehaviour of replication ? > > Then I tried to drop db manually in the standby db but of course got an > error because the db is in read only mode. > > Any suggestion of a clean way to drop the db in D/R site ? There must be something that broke replication. Look into the PostgreSQL log of the standby server. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com