Re: FDW system columns - Mailing list pgsql-hackers

From Tom Lane
Subject Re: FDW system columns
Date
Msg-id 22453.1321144690@sss.pgh.pa.us
Whole thread Raw
In response to FDW system columns  (Thom Brown <thom@linux.com>)
Responses Re: FDW system columns
Re: FDW system columns
List pgsql-hackers
Thom Brown <thom@linux.com> writes:
> So the ctid is always 2^32-1.  Bit weird, but probably explainable.

See ItemPointerSetInvalid.

> But xmin on the file_fdw result is odd.  Why are these all over the
> place?

heap_form_tuple initializes the t_choice fields as though for a tuple
Datum, and file_fdw doesn't change it.

Just a couple hours ago I was wondering why we create system columns for
foreign tables at all.  Is there a reasonable prospect that they'll ever
be useful?  I can see potential value in tableoid, but the others seem
pretty dubious --- even if you were fetching from a remote PG server,
the XIDs would not be meaningful within our own environment.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Thom Brown
Date:
Subject: FDW system columns
Next
From: Thom Brown
Date:
Subject: Re: FDW system columns