pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #13978: xmin,xmax not current for foreign table
2+ messages / 2 participants
[nested] [flat]

* BUG #13978: xmin,xmax not current for foreign table
@ 2016-02-23 03:29 digoal@126.com
  2016-02-23 03:38 ` Re: BUG #13978: xmin,xmax not current for foreign table Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: digoal@126.com @ 2016-02-23 03:29 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      13978
Logged by:          digoal
Email address:      digoal@126.com
PostgreSQL version: 9.5.0
Operating system:   CentOS 6.x x64
Description:        

tbl0 is a foreign table with postgres_fdw
master=# select tableoid,ctid,xmin,xmax,* from tbl0;
 tableoid |  ctid  | xmin |    xmax    | id | info |          crt_time      
   
----------+--------+------+------------+----+------+----------------------------
    20304 | (0,11) |  192 | 4294967295 |  4 | test | 2016-02-23
11:25:20.440349
    20304 | (0,12) |  192 | 4294967295 |  8 | test | 2016-02-23
11:25:20.440349
(2 rows)

but the right values is:
db0=# select tableoid,ctid,xmin,xmax,* from tbl0;
 tableoid |  ctid  |   xmin   |   xmax   | id | info |          crt_time    
     
----------+--------+----------+----------+----+------+----------------------------
    20280 | (0,11) | 38232587 | 38232588 |  4 | test | 2016-02-23
11:25:20.440349
    20280 | (0,12) | 38232587 | 38232588 |  8 | test | 2016-02-23
11:25:20.440349
(2 rows)


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #13978: xmin,xmax not current for foreign table
  2016-02-23 03:29 BUG #13978: xmin,xmax not current for foreign table digoal@126.com
@ 2016-02-23 03:38 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-02-23 03:38 UTC (permalink / raw)
  To: digoal@126.com; +Cc: pgsql-bugs

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-02-23 03:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-02-23 03:29 BUG #13978: xmin,xmax not current for foreign table digoal@126.com
2016-02-23 03:38 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox