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 1iAHQI-0007JN-9t for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Sep 2019 17:37:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAHQH-0007R5-47 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Sep 2019 17:37:53 +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 1iAHQG-0007Qq-N6 for pgsql-hackers@lists.postgresql.org; Tue, 17 Sep 2019 17:37:52 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAHQD-0006yB-Id for pgsql-hackers@postgresql.org; Tue, 17 Sep 2019 17:37:52 +0000 Received: by mail-qt1-x842.google.com with SMTP id u40so5401810qth.11 for ; Tue, 17 Sep 2019 10:37:49 -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=sysTwfI8B/qMJqUj4CwkkQsPaLXNLrQehyLkN/Jdbxo=; b=kK53B9rBxK4rIiSmM55kRYWfNRvY/Punz2I2boXKyEmTS0KVgBs6gnh0+q/7OBZ6SD jX0VezfslQ1GeXxDMh9mASAcXcqs1OKTbEuFjHsJL3OjjG7uvqn7gNKHCRU2AFsf4I9i EYvpn8uXr/fxgM91U1RfRMok38SdFU0QV7YbWiZnu+8IicrCKEZKNp2qjQrjkH27AnJV v7qfZfSvA7fJKQyHIfFTdisoDNw6IRG1KsDrnzppHml2R+evroC6RORVoMpAlg0Cwa1t eqk6R5TI7zS+XHbgD0p1oYQxQKuPOf4GSsABZTJBKiSZDx8szeXfi6o/wQ4YRqrSfG7b /nDA== 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=sysTwfI8B/qMJqUj4CwkkQsPaLXNLrQehyLkN/Jdbxo=; b=PSe+a7L1iZ27BCBFDfKIV1TXedhEMTKurMBi385s+C6RY2jRKa0qymUrOkkaINROv1 zkJ5V+GFvwXM4Mm/dtb99jsVVgbUUucZLL/DJaHh+SEE0a26p6sIH01u9tcq2CCABbzG q86/PLcUqjD3ckYX0n2v+2KDPGsbD/+az1+am6Nky0NzP0JHeNpmVL/bevtnraErjsQ9 d1plg927EV/T9bsbZW14KUndEv6kv0UZMybOslqC1xTmpcULxmAPN+9loNr5N4M7nrQH rd3In1p3zyPf6MF9Hc3fOnoxwsoYOP+9TbAOwltYL0+y9BU/8VsQa6zMvrvT0sgjgaDC uDtQ== X-Gm-Message-State: APjAAAX4xzkgox+++o4gBL6Ojk/ychivkpHhL3fCUu3CwX9WS7U0kUpo gx1N/SX7yN6y9Fy2PM+UcO5Wrg== X-Google-Smtp-Source: APXvYqxYjig6up8YFAXW4JFFZC6RCRjA6eGe81ZmdM22D9YkDrOcH4n7YDV0hBPNPJx1ooTqISbpAg== X-Received: by 2002:ac8:72d0:: with SMTP id o16mr3246497qtp.16.1568741866771; Tue, 17 Sep 2019 10:37:46 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([177.154.139.199]) by smtp.gmail.com with ESMTPSA id c14sm1933285qta.80.2019.09.17.10.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 10:37:46 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 862F2120AE0; Tue, 17 Sep 2019 14:37:42 -0300 (-03) Date: Tue, 17 Sep 2019 14:37:42 -0300 From: Alvaro Herrera To: Thomas Munro Cc: Fabien COELHO , Peter Eisentraut , pgsql-hackers Subject: Re: Allow an alias to be attached directly to a JOIN ... USING Message-ID: <20190917173742.GA8735@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Aug-01, Thomas Munro wrote: > Indeed, that seems like a problem, and it's a good question. You can > see this on unpatched master with SELECT x.filler FROM > (pgbench_tellers AS t JOIN b USING (bid)) AS x. I'm not sure I understand why that problem is a blocker for this patch. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services