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 1fYYK2-0002OG-Cn for pgsql-general@arkaria.postgresql.org; Thu, 28 Jun 2018 14:54:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYYK0-0007TS-0U for pgsql-general@arkaria.postgresql.org; Thu, 28 Jun 2018 14:54:56 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYYJz-0007TL-Lm for pgsql-general@lists.postgresql.org; Thu, 28 Jun 2018 14:54:55 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fYYJv-0008KT-VJ for pgsql-general@lists.postgresql.org; Thu, 28 Jun 2018 14:54:55 +0000 Received: by mail-qt0-x242.google.com with SMTP id 92-v6so4952027qta.11 for ; Thu, 28 Jun 2018 07:54:51 -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=KldP4yn0HcBdgcwqxD62+17Z4HUEZrMqVgRHfq4WwnQ=; b=PXMydJEDju9npnkrri0T8JGBIUiZ/f2gS89hhcaK/y614oOS7Us041cfZ85ayw4jS8 aatYHa0+xv6BMo75BZa01mEmXTbWAjrugbXDPLQwV9rEbVNpl06hP4+uzyqJIRccZbMO RdF2e7h1vwNJmtpIfjZ8CHSxA4hDtJNJBnUkude/zbq4lPk/6BBta/ecGdT13yS6RJsI rtO/uvJQvohAcUxXU6LDoLfTDKf9Ub4+riXVcuPsNrIci5unj8s/3NOZhcODycinCEh1 luASam7WxAx512/ZhkqIoSztshJT1T+ROhksJJf9OA320lFkclWujctJVqmESRoO2LSG d0IA== 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=KldP4yn0HcBdgcwqxD62+17Z4HUEZrMqVgRHfq4WwnQ=; b=ifSCGS2jER8Psp2JUT7wySZeFi4rpmz/pA1vIiok3BoO1NcjqVVX/i2NODnI3jOc97 A53T75sI/CLQ4jnr/bICYQzG8ry7kcc/kvHQPJSyf17w6ghr+qL0UhgocP8eMpHByv3A +mjrS0jIIpWL5uCMfUXmsdVmqw/IjOC76tOf1hhtgpZl+KaGdiTzia1rEYHbtk+FQ/z1 M3IRe0Yduv3X3UQ5sLOawkBf5rbuUBU7AxsmmUfhW8uYpJ2FAqBkUMXPgo85p0VBZLT6 IfwDgH/XPuotkhUk2OUbXLmu1CrOxqRnT5k+zwZ3JOuzP9fLxlsVSihJOHDfg7pMmfp2 FYEQ== X-Gm-Message-State: APt69E3Zj+JeRDHe7P0K4oPztAFbbW3KYuLYOIj5ZZMKzS3as6DBgcJu w6vkHy56QGB6W0yZAdDgS44BG5nn X-Google-Smtp-Source: AAOMgpdGP4USfpSQdl1iDYZI5bpF33e2UHBRv1Y6FQ2PZlaxFzImzw2OPAyflqq7rzd7xpSf28+7kA== X-Received: by 2002:aed:24e7:: with SMTP id u36-v6mr9735440qtc.58.1530197690106; Thu, 28 Jun 2018 07:54:50 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.56.49.188]) by smtp.gmail.com with ESMTPSA id r48-v6sm5216889qte.63.2018.06.28.07.54.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 07:54:49 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id BD7CB600; Thu, 28 Jun 2018 10:54:46 -0400 (-04) Date: Thu, 28 Jun 2018 10:54:46 -0400 From: Alvaro Herrera To: Andreas Joseph Krogh Cc: Adrien NAYRAT , pgsql-general@lists.postgresql.org Subject: Re: Sv: Re: Sv: Re: CTE optimization fence Message-ID: <20180628145446.3ichhyxb55kbr4x6@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: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Jun-27, Andreas Joseph Krogh wrote: > I know. I hate the INLINE proposal and hope default-behaviour will be like in > other DBs, inline like sub-query as default. GUC for preserving fence is what I > hope will happen. I am probably biased ;-) but I like my proposal #1 in this email https://www.postgresql.org/message-id/20170503173305.fetj4tz7kd56tjlr%40alvherre.pgsql where you have to mark queries were the current behavior is desired (WITH MATERIALIZED), and leave all other queries alone. I don't remember any dissent on that. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services