Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aY3ox-000337-4V for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Feb 2016 03:39:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aY3ow-0005Qp-6J for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Feb 2016 03:39:30 +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.84) (envelope-from ) id 1aY3oJ-0004hk-An for pgsql-bugs@postgresql.org; Tue, 23 Feb 2016 03:38:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aY3oH-00017E-4V for pgsql-bugs@postgresql.org; Tue, 23 Feb 2016 03:38:50 +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 u1N3cT52001111; Mon, 22 Feb 2016 22:38:29 -0500 From: Tom Lane To: digoal@126.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13978: xmin,xmax not current for foreign table In-reply-to: <20160223032916.8552.92982@wrigleys.postgresql.org> References: <20160223032916.8552.92982@wrigleys.postgresql.org> Comments: In-reply-to digoal@126.com message dated "Tue, 23 Feb 2016 03:29:16 +0000" Date: Mon, 22 Feb 2016 22:38:29 -0500 Message-ID: <1110.1456198709@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org digoal@126.com writes: > tbl0 is a foreign table with postgres_fdw > master=# select tableoid,ctid,xmin,xmax,* from tbl0; > ... > but the right values is: xmin/xmax are not meaningful in foreign tables. Even in the case of a postgres_fdw foreign table, they cannot be useful because there's no way to map between the remote server's XID numbering and local XIDs. So I do not believe your claim that there's a "right" value for them to have. Ideally, those columns wouldn't even exist in foreign tables; but fixing that has so far not seemed worth the trouble it would require. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs