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 1gvSLL-0004XV-PU for pgsql-general@arkaria.postgresql.org; Sun, 17 Feb 2019 19:43:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gvSLK-00085a-Gh for pgsql-general@arkaria.postgresql.org; Sun, 17 Feb 2019 19:43:14 +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 1gvSLK-00085G-1g for pgsql-general@lists.postgresql.org; Sun, 17 Feb 2019 19:43:14 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvSLG-0007in-5W for pgsql-general@lists.postgresql.org; Sun, 17 Feb 2019 19:43:12 +0000 Received: by mail-wr1-x442.google.com with SMTP id f14so16041257wrg.1 for ; Sun, 17 Feb 2019 11:43:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=UueUu92phQ2cvt1asNWUh8Zwmrh1bQBH152+riD5XFc=; b=L2bP8ugaT4dgMV4eTGSpuojZGSExxq9tIDhhF0eQsqWkY9Se1RbN2cdECrs3WCKei9 eLLyVnxuWxH2Hx0irblM5uL+l9akaYg60+jbE35Z7t/ynF0Ue4s0xqW69oVJPXVaqx7u dRmNHjEL70HlopN8epCntQDiWQU3eYx55+hJSXB4OcUjGOIXBuMhD+yCJr1qumApkVff Vi6PpsXNBT6a8/ZShWMUhDQJxrzPdwHfJqNuvRw6HE4KVGGJYmnbJK0ksYcG7P7Vodbr OT5AyLov13nRS6bKZWerz162TYelpNToDdiuVCQ5CbjPBvXWRs2BnZK7TTUMZzOdjTDN xS6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UueUu92phQ2cvt1asNWUh8Zwmrh1bQBH152+riD5XFc=; b=kQdV7Dy9TiUavMwS6dzvEWv1VvDNa5QTg1EjNb+9xmaQxnw3KtCASpxyCjXuN+TexQ XZHvvOhy+ZZfpcjTn8nD4QWsp26HRKTwoMoIiNDwzIPlE5mKliU+dXHhcmrzxT06ixaO pJ6iC07QnUVJi8qe7mlbSvSQqS5wn+XXDBve2YDWAy9PEd0F/rFUS5RnQSkQ220y48jw 5tQGKoUShnLJSc7ShAnsV7sNawLHuD20qGXSbVXJLI4sxWe3WAa8SZsRd8ua0ztfq30o BvFLE1uVOT/CPOzu3fPizmZM5ki5U3R4Dir3wrvI+NtJhsHcHk0tMDxypA+/QPPozq45 yiRQ== X-Gm-Message-State: AHQUAuZo1XuXnNqQ6/qR9z5mjECY40IhiPIZ6aPim6VjS5Cun02MhIf8 W94yWQDk9KD1MCFX3i61O+4PuA3A X-Google-Smtp-Source: AHgI3IaAWySdFdEWaoroB/5plYtliIB4SvyV1tpkpCmvHu1aSZsxrUIZXwf5CH8Z6qS9vEbMgYHpMA== X-Received: by 2002:adf:f845:: with SMTP id d5mr15080468wrq.113.1550432588297; Sun, 17 Feb 2019 11:43:08 -0800 (PST) Received: from localhost.localdomain (ppp089210000085.access.hol.gr. [89.210.0.85]) by smtp.gmail.com with ESMTPSA id u134sm9745737wmf.21.2019.02.17.11.43.07 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Feb 2019 11:43:07 -0800 (PST) From: auxsvr To: pgsql-general@lists.postgresql.org Subject: Re: FDW, too long to run explain Date: Sun, 17 Feb 2019 21:43:05 +0200 Message-ID: <2614341.vqdVxeSBeF@localhost.localdomain> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sunday, 17 February 2019 20:58:47 EET Jeff Janes wrote: > A question for the PostgreSQL hackers would be, Is it necessary and > desirable that the EXPLAIN be issued in the same transaction as the > eventual DECLARE and FETCHes? I don't think it is. I guess if the foreign > side table definition got changed between EXPLAIN and DECLARE it would > cause problems, but changing the foreign side definition out of sync with > the local side can cause problems anyway, so is that important to preserve? Won't separate transactions cause issues if the statistics of the table change in the meantime in a way that affects the plan? > Cheers, > > Jeff -- Regards, Peter