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 1jgdLM-0006bz-EB for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jun 2020 00:02:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jgdLL-0000id-AJ for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jun 2020 00:02:47 +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 1jgdLK-0000iV-W3 for pgsql-hackers@lists.postgresql.org; Thu, 04 Jun 2020 00:02:47 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jgdLI-00016D-8K for pgsql-hackers@postgresql.org; Thu, 04 Jun 2020 00:02:45 +0000 Received: by mail-qk1-x742.google.com with SMTP id b27so4263934qka.4 for ; Wed, 03 Jun 2020 17:02:44 -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=H0bttbZidml6AMm+qe7zYRxi295qY48wYacGyv2/Fe0=; b=DUMEO+EP0A2EA7He4S260zifoCqm20kIIqFEJ+rjWGCbdMnUwVPaLTXZ7m7GtIeZVU zPj43rsGMKowR6kx/xGBm08Ds0OgF0Z+ns60QP07r9TjF1e15WoVoHbT2/0+8fPRyxpz j8xOuHcea+kShAz07EdMNiMVTuhtHEtDQ8YosIam6BQVHrQU2wgIO+opAikQrwl2O9Tf y+e4HkZfQG5MPbdNo9K7+dUgycEaj37OiVvZ1blvxhmTy/hCzWMemhL999OMB9dnfOKx OoYQAljvOAjy0WaxMgNRaCHwOsGZiXNOdLX4+dtnVZfNHRThE0wPsLcFng5YKAvU57KI WQkw== 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=H0bttbZidml6AMm+qe7zYRxi295qY48wYacGyv2/Fe0=; b=jpUKVxEAJK5j+11P/UUqw8hHYY8h8cLXsw/URVSfnRBT/vjJL/7j6RgagSkB8byXeY ocGIZxXpiJwXVPbjlPhKRf56ANMmQeiG6GuAcXoub0e3SH5+94qdvkHnUlsqUhIcJyu0 rKxNrcntmJg0Yo6eage5ELr2wQfKbIg8sh0Q/JPzmo1UdEgIW7RWl/B5ITMDXpl5zTlN Pi4gONMUC4OeKi8BQVWIYQzKsKnQv179QGOpV0biYox8K+ZY49m5aDSexjL02TVhoNrx a5krLPf6AUrzTGLSPGXlAatNIRn8B+SbbCBGI39Nt6qLNzXi8XYPIyScO03+e+uBJmen lYFA== X-Gm-Message-State: AOAM533BFk+vxm455gdvcO60Qj//VbBY02e+r3efEBJiIceqEThcvJ/f B4hTf9DAI6apBu3mOwg4bD3KHQ== X-Google-Smtp-Source: ABdhPJzIWY49qLWYbWcADdxje0jh6r084vu2dyeRws3nJlQ2LopID0i5ZZ4CNX9P4mpvt1mK9zMQvQ== X-Received: by 2002:a37:2e86:: with SMTP id u128mr2264025qkh.26.1591228963103; Wed, 03 Jun 2020 17:02:43 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id n85sm2892073qkn.31.2020.06.03.17.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 17:02:42 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id AC25E300967; Wed, 3 Jun 2020 18:27:12 -0400 (-04) Date: Wed, 3 Jun 2020 18:27:12 -0400 From: Alvaro Herrera To: Andres Freund Cc: Fujii Masao , Michael Paquier , Masahiko Sawada , Kyotaro Horiguchi , sitnikov.vladimir@gmail.com, PostgreSQL-development Subject: Re: SIGSEGV from START_REPLICATION 0/XXXXXXX in XLogSendPhysical () at walsender.c:2762 Message-ID: <20200603222712.GA11510@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200603221334.xc24whtbixxyvlxa@alap3.anarazel.de> 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-03, Andres Freund wrote: > I don't think we should prohibit this. For one, it'd probably break some > clients, without a meaningful need. There *is* a need, namely to keep complexity down. This is quite convoluted, it's got a lot of historical baggage because of the way it was implemented, and it's very difficult to understand. The greatest motive I see is to make this easier to understand, so that it is easier to modify and improve in the future. > But I think it's also actually quite useful to be able to access > catalogs before streaming data. You e.g. can look up configuration of > the primary before streaming WAL. With a second connection that's > actually harder to do reliably in some cases, because you need to be > sure that you actually reached the right server (consider a pooler, > automatic failover etc). I don't think having a physical replication connection access catalog data directly is a great idea. We already have gadgets like IDENTIFY_SYSTEM for physical replication that can do that, and if you need particular settings you can use SHOW (commit d1ecd539477). If there was a strong need for even more than that, we can add something to the grammar. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services