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 1jo6rU-0007rj-4s for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jun 2020 14:58:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jo6qv-0000KN-M0 for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jun 2020 14:58:17 +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 1jo6qv-0000KG-9q for pgsql-hackers@lists.postgresql.org; Wed, 24 Jun 2020 14:58:17 +0000 Received: from mail-qv1-xf43.google.com ([2607:f8b0:4864:20::f43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jo6qq-0007cv-J4 for pgsql-hackers@postgresql.org; Wed, 24 Jun 2020 14:58:15 +0000 Received: by mail-qv1-xf43.google.com with SMTP id dp10so1146648qvb.10 for ; Wed, 24 Jun 2020 07:58:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=GHJsM8ancjZBe6l2zAaTZC5rc1S+Lqjrr0Aqjb7iRUM=; b=N/dOhCwIRrn4kg472oEvfBrkD+DdwdnpTnOQY3udfokyuKvckt1hXjqDKtnapPL30M EJTJGH/cVxs0LS3MAR/N40K6mNshe/HAe3Ngx7/LQbZU8T4fWTGwblJVDicNY6RSHC8P FxlZG6yfZQCOSREUAW/PfAd5x1XSFH/Ifk//ypFn3Qfc+YJlMaHDeWDqz0bhfqruVwkL 7b4pXg0O20sxAmvayZ7O8EIJwjgeoAy3OvQSaA5O4wyepGzZ6FrwlF4TylezFs7/IQC1 jgFP/ldmTzj2T5M4rg+fUq9UFNPQlYRnTtoxMh+56Rb5sLrX760qB6pjpdTxq8KXXyC0 BfFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=GHJsM8ancjZBe6l2zAaTZC5rc1S+Lqjrr0Aqjb7iRUM=; b=j/p3xOx0Zb5UsAlus06GU0iBHWSMa1qus62VfmokAh0vhBn5SHLPSV7AoLkbxUSffw HskDv4UcFszG4a3yhHkOTb8IFXRTG5BnyNkWfNmJsX9kJUZkYZ7IjDduEd+NBd3nrpFU N4T8m23GbXZfP5PuevIwcCIUtRYDETLRK5wmfb07E+h5NlH57EOMThyvD6dDbC8dXxL7 VhjTcoZRiSqBYj+xBiuS+b3EMVhJkJwjeV1SHI3HOjyTCxkgGNRTXZ8GJVmzjHRX4xCB 3EKy+lCmq7rdDGRgFQgsINDWDFDR9IwHH4tE0WF1bcLlZELit/+zfxrlqt0bE1pt9zAo 88dw== X-Gm-Message-State: AOAM533bk4eS4nzmx8In/yxJ/CJw5wy5moYc+GSW/DL5BQ5WPpPvztRd DuoWKT4eO9dPKZE/9QO8gqCLcQ== X-Google-Smtp-Source: ABdhPJwC7HSje1b1j1ru3eUS/Tal0GhKKCS4/kMG7/dlU6gLAer61WTADcdcqZ7uJS+8AQKyQ3kxSQ== X-Received: by 2002:a05:6214:9af:: with SMTP id du15mr5785025qvb.188.1593010691102; Wed, 24 Jun 2020 07:58:11 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id b185sm3402943qkg.86.2020.06.24.07.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 07:58:10 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 365832A3A97; Wed, 24 Jun 2020 10:58:08 -0400 (-04) Date: Wed, 24 Jun 2020 10:58:08 -0400 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: michael@paquier.xyz, andres@anarazel.de, jkatz@postgresql.org, davecramer@postgres.rocks, masao.fujii@oss.nttdata.com, masahiko.sawada@2ndquadrant.com, sitnikov.vladimir@gmail.com, pgsql-hackers@postgresql.org, pg@bowt.ie Subject: Re: SIGSEGV from START_REPLICATION 0/XXXXXXX in XLogSendPhysical () at walsender.c:2762 Message-ID: <20200624145808.GA18120@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200624.115638.1224023045303890562.horikyota.ntt@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jun-24, Kyotaro Horiguchi wrote: > In logical replication, a replication role is intended to be > accessible only to the GRANTed databases. On the other hand the same > role can create a dead copy of the whole cluster, including > non-granted databases. In other words -- essentially, if you grant replication access to a role only to a specific database, they can steal the whole cluster. I don't see what's so great about that, but apparently people like it. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services