Re: FDW system columns - Mailing list pgsql-hackers

From Robert Haas
Subject Re: FDW system columns
Date
Msg-id CA+Tgmoa_TsU0_aNP2NJ3JMVuMa6ay15gYF5bz+KrZDKkK45RjA@mail.gmail.com
Whole thread Raw
In response to Re: FDW system columns  (Shigeru Hanada <shigeru.hanada@gmail.com>)
Responses Re: FDW system columns  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Feb 28, 2012 at 7:00 AM, Shigeru Hanada
<shigeru.hanada@gmail.com> wrote:
> We have three options:
>
> a) remove all system columns (posted patch)
> b) remove system columns other than tableoid
> c) leave all system columns as is (current 9.2dev)
>
> Incidentally, views, which is very similar object type to foreign
> tables, have no system columns.
>
> Thoughts?

I vote against (c).  I'm not sure which of (a) or (b) is better.
We've talked about allowing foreign tables to inherit from regular
tables and visca versa, and certainly, in that situation, tableoid
would be useful.  But I don't think we've made a definitive decision
about that.  I stripped that functionality out of the original patch
because it introduced a bunch of warts that we didn't have time to
figure out how to fix, and it's not clear to me that anyone's spent
any time thinking about that since then.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Thom Brown
Date:
Subject: Re: Command Triggers, patch v11
Next
From: Kohei KaiGai
Date:
Subject: Re: FDW system columns