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 1gkzyL-0007MK-55 for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Jan 2019 23:24:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gkzyJ-0001HG-Nx for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Jan 2019 23:24:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkzyJ-0001Da-9v for pgsql-hackers@lists.postgresql.org; Sat, 19 Jan 2019 23:24:15 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkzyF-00085R-UF for pgsql-hackers@lists.postgresql.org; Sat, 19 Jan 2019 23:24:14 +0000 Received: by mail-wr1-x443.google.com with SMTP id v13so19258874wrw.5 for ; Sat, 19 Jan 2019 15:24:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6KWN9oMVpQilSAAfAisxE/nMyYTF3bIg5xCi8CaZtek=; b=TRaWUfYq6t6aw8V9hTyKCaxjCfxcK6uxtBeivwuhmLhVxRC0HSvsdPITSeWRYLfdpY oqemOxoTQTvr8uxO63CY3R0KfhRtA8wKgbnFlPyVgcGNporFCoA1nt8806MASQFKOZUX OP8MagZupgdajt10F4hjGZkv6SgQNteoJMegvTLafNoY7J9PUMfVYeqvSY3thz+o3ZCH Evf9K7Uel0xXrNBUASrJ90Pw7bRaDqMPsik7TUr1HmsUivhPUiSDABgb9sSXiAzoetev u+BhgnBqoNhwf1IG7Desr0EwwweZVgM30WQQHHUI80NS07sPlK7VLdVEgHI466U1QH2l 9L/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6KWN9oMVpQilSAAfAisxE/nMyYTF3bIg5xCi8CaZtek=; b=khadUyGiBkPYEbvHDmIOPERkAnjMVGTTAZLY/UtLMfV8XSA+2+E6IWYdWfJ81HvwdS Xx7+1/lR6jqAA2d3Gw6UBKPHaMkXDbc9+m4GHDBPmHSIs2zNW9vcIas6T4q0cEVEgAm6 k4GI1NIatxh8IbivpKgjIoccibLSCTqCpc6+WyBpVasPPS9HD0p/a92JMDXhm1F/Xpuj tVSnmwLSoBTrOvQeuH+dIvnsvsF98w6ilvXJXSrsjLBGHerbYNnek8/rdLmrJurkAoJD vvIaaH+Rggg7D6BzKPH5Crfa1764zq2NKFW90o6F1eeleY5B4lqI/FTt8zg63gw26jc1 QjWQ== X-Gm-Message-State: AJcUukdrrcJIN/aSgkVVFneaKahBwijlIAtQJ5sWEtup1/UOgJovbzd2 btpWJcVttKyFizlABPa2ibsqep2xIW/Vz511Zs9yZfi7/6SWhDTwIu2vR+Py4Z2DE6eldIhCuPc pZXqLKA4tTOBB7W/Dj8cdwnNYynSR48qdb2TinjXNa0z4t9qGQlc0hoXuEtG3MFpxiZDb10X6SE 8Chlopoo2Eyov3lMnLhqs= X-Google-Smtp-Source: ALg8bN4jJfdcj5kPqOIzkd+xOt9Fl1VUgciqhwnGUe5jcWb0YEtUhV4a4TGpPTWChdXUw6stD27Xbw== X-Received: by 2002:a5d:49cd:: with SMTP id t13mr22379795wrs.144.1547940249111; Sat, 19 Jan 2019 15:24:09 -0800 (PST) Received: from [10.137.2.19] (ip-86-49-251-50.net.upcbroadband.cz. [86.49.251.50]) by smtp.gmail.com with ESMTPSA id c8sm75791295wrx.42.2019.01.19.15.24.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jan 2019 15:24:08 -0800 (PST) Subject: Re: COPY FROM WHEN condition From: Tomas Vondra To: Surafel Temesgen Cc: alvherre@2ndquadrant.com, Adam Berlin , pgsql-hackers@lists.postgresql.org References: <194e2225-b186-9325-0cd1-9a5b09d28251@2ndquadrant.com> <20181204094418.wpr6mxrtsuxb5mlq@alvherre.pgsql> <3b2b1aac-5861-acd8-fda3-054c4e4da888@2ndquadrant.com> Message-ID: Date: Sun, 20 Jan 2019 00:24:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/14/19 10:25 PM, Tomas Vondra wrote: > On 12/13/18 8:09 AM, Surafel Temesgen wrote: >> >> >> On Wed, Dec 12, 2018 at 9:28 PM Tomas Vondra >> > wrote: >> >> >> Can you also update the docs to mention that the functions called from >> the WHERE clause does not see effects of the COPY itself? >> >> >> /Of course, i  also add same comment to insertion method selection >> / > > FWIW I've marked this as RFC and plan to get it committed this week. > Pushed, thanks for the patch. cheers -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services