Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e06cs-0003oo-Ej for pgsql-admin@arkaria.postgresql.org; Thu, 05 Oct 2017 13:55:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e06cr-0004SO-RN for pgsql-admin@arkaria.postgresql.org; Thu, 05 Oct 2017 13:55:45 +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.84_2) (envelope-from ) id 1e06cr-0004SE-D2 for pgsql-admin@postgresql.org; Thu, 05 Oct 2017 13:55:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e06cj-0001Df-WD for pgsql-admin@postgresql.org; Thu, 05 Oct 2017 13:55:44 +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 v95DtZnx028777; Thu, 5 Oct 2017 09:55:35 -0400 From: Tom Lane To: =?UTF-8?Q?G=C3=BCnce_Kaya?= cc: pgsql-admin@postgresql.org Subject: Re: Postgresql FDW - some difference between remote and target table structure In-reply-to: References: Comments: In-reply-to =?UTF-8?Q?G=C3=BCnce_Kaya?= message dated "Thu, 05 Oct 2017 13:44:59 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28775.1507211735.1@sss.pgh.pa.us> Date: Thu, 05 Oct 2017 09:55:35 -0400 Message-ID: <28776.1507211735@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org =?UTF-8?Q?G=C3=BCnce_Kaya?= writes: > Why there is some difference between FDW and target database? Is there > anyone who can explain it? Either the foreign table was created without that column to begin with, or the column was added to the remote table later and the foreign table wasn't updated to match. Foreign tables don't magically track what is on the remote server; they just have the set of columns you told the local server they should have. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin