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 1i7ggT-0006Na-76 for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Sep 2019 13:59:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i7ggQ-00073R-PN for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Sep 2019 13:59:50 +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 1i7ggP-00071s-Oh for pgsql-bugs@lists.postgresql.org; Tue, 10 Sep 2019 13:59:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i7ggN-0005yA-Fz for pgsql-bugs@lists.postgresql.org; Tue, 10 Sep 2019 13:59:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x8ADxUrh028185; Tue, 10 Sep 2019 09:59:30 -0400 From: Tom Lane To: Etsuro Fujita cc: PostgreSQL mailing lists , zedaardv@drizzle.com Subject: Re: BUG #15998: query to return a table column list gives error on a missing foreign data wrapper library In-reply-to: References: <15998-8429a3984b1364ad@postgresql.org> Comments: In-reply-to Etsuro Fujita message dated "Tue, 10 Sep 2019 20:41:34 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28183.1568123970.1@sss.pgh.pa.us> Date: Tue, 10 Sep 2019 09:59:30 -0400 Message-ID: <28184.1568123970@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Etsuro Fujita writes: > On Tue, Sep 10, 2019 at 6:46 PM PG Bug reporting form > wrote: >> Take a postgres database with foreign servers and foreign tables. >> remove the fdw library. >> [ Then a query on information_schema.columns ] >> throws error >> ERROR: could not access file "$libdir/postgres_fdw": No such file or >> directory >> >> commenting out the case statement >> CASE WHEN col.is_updatable = 'YES' THEN true ELSE false END AS >> is_updatable, >> causes the query to run without error. > Seems reasonable to me; the is_updatable reference would cause the > IsForeignRelUpdatable() call for postgres_fdw foreign tables IIUC, so > removing that would be a workaround for this issue if that works for > you. Yeah. Seems like not-a-bug to me: if you inquire about the updatability of a foreign table, we really can't answer that without consulting the relevant FDW. regards, tom lane