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 1fgZO2-0002nM-73 for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jul 2018 17:40:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fgZO0-00042W-EU for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jul 2018 17:40:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fgZNz-00042N-Uu for pgsql-bugs@lists.postgresql.org; Fri, 20 Jul 2018 17:40:12 +0000 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fgZNw-0008Ab-2g for pgsql-bugs@lists.postgresql.org; Fri, 20 Jul 2018 17:40:10 +0000 Received: by mail-qk0-x241.google.com with SMTP id z74-v6so6645413qkb.10 for ; Fri, 20 Jul 2018 10:40:07 -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=JMstes7MIfyUd4fcAG0LlUJwP1sO6G7/O73AgG1Bjko=; b=0TTT1QzfHaP/E1IUNcaWK3JvX/PUgFSVU1zp8ls6pyCTRGP7Qtk4wD3QnBOktYIdDo hNOoI6lPG5J3m8G5GLvDmvL7MZGukGjvX4Rh/gj0koKAce8EI7j2Pv8QaStqny9FRXMS PgaPNenpP8jhpQbeRwgOpqBT7YMeAVpH5xi2AVKQTEpOQ9dYCqh6ovmSEwySotlD9WNk XYcc2MHAFowBiEcH4nKPhL2kQktEUs1Y7FJAe2/yqaZ6gyuMFd0we9ZJc8AuE7LwMI8B 76apxFLUJriOscAc7jYjmIdZKgtbsh+XP+VmUYJOjPWlFnILolxIyyk15moFSQzEJWX7 IKvg== 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=JMstes7MIfyUd4fcAG0LlUJwP1sO6G7/O73AgG1Bjko=; b=EH58SJ91FMppYANItTpOg6++gEklGFPBtTbadN4tWSrzl/CPT6RPcA0tak6/xPacAf tLGQnerHCdVVd8BmsNw2CDjq+wesXMrrsMHMmAQ+TmidG1oZKplSTnAuxLzLAstR01kx 2fWPkNoi8d3bjKvyNfIudjKE5MAh/y6QBh78zcwhR1FwO8KXWQlDSEnqxyqhTTuLMHsZ tSTen7XHZ6zQd83oEsV6YeoYGldMhyT13bwDUso+TzCCWsdGW76LqfeVYJ0iBMkx4rc9 zsyERun9D2FKuQ61+mHZMzs4zbx0Ixy1X9nr/2BX01VXDTsMn1FEMBZOMJSmDlVyC+Cu uIog== X-Gm-Message-State: AOUpUlGe/PVlpMupYsYkj5cIMFwrBRgS3U5I9y0fbEI/1O83/1HyeUCC qKAr3u38VK5w+kaIRsPHY4ZqbA== X-Google-Smtp-Source: AAOMgpdY7qHVudtYmvOTR/kRN7oS0WdPgqejYdF2Foi9jAW/qlMrm7g9WHwKq821urcnolwcbFTOVg== X-Received: by 2002:a37:d7c5:: with SMTP id t66-v6mr2610620qkt.51.1532108406826; Fri, 20 Jul 2018 10:40:06 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id p5-v6sm1552067qkd.81.2018.07.20.10.40.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jul 2018 10:40:06 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 7DA3E8A4; Fri, 20 Jul 2018 13:40:04 -0400 (-04) Date: Fri, 20 Jul 2018 13:40:04 -0400 From: Alvaro Herrera To: Andrew Gierth Cc: Tom Lane , Ireneusz Pluta , Andres Freund , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15287: postgres_fdw: the "WHERE date_trunc('day', dt) = 'YYYY-MM-DD' does not push to remote. Message-ID: <20180720174004.ixorgubh6b4uv2e6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87effxizux.fsf@news-spur.riddles.org.uk> 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-Jul-20, Andrew Gierth wrote: > (or in the case of date_trunc and extract, maybe they need to be split > up into separate functions so that we can properly distinguish the > immutable from the mutable cases) I think for partition pruning this would be useful too. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services