Re: FDW system columns

From: Thom Brown <thom(at)linux(dot)com>
To: Shigeru Hanada <shigeru(dot)hanada(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Florian Pflug <fgp(at)phlo(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: FDW system columns
Date: 2012-02-28 09:08:46
Message-ID: CAA-aLv7-rTwb9e0cy3oZsV3Z6i6be7PeHdHZ-mPJ8CDRmz-ySw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2012/2/28 Shigeru Hanada <shigeru(dot)hanada(at)gmail(dot)com>:
> (2012/02/27 12:35), Robert Haas wrote:
>> On Sat, Feb 25, 2012 at 3:56 PM, Thom Brown<thom(at)linux(dot)com>  wrote:
>>>>> If there seems to be a consensus on removing system column from foreign
>>>>> tables, I'd like to work on this issue.  Attached is a halfway patch,
>>>>> and ISTM there is no problem so far.
>>>>
>>>>
>>>> I can say that at least PgAdmin doesn't use these columns.
>>>
>>> So we still have all of these columns for foreign tables.  I've tested
>>> Hanada-san's patch and it removes all of the system columns.  Could we
>>> consider applying it, or has a use-case for them since been
>>> discovered?
>>
>> Not to my knowledge, but Hanada-san described his patch as a "halfway
>> patch", implying that it wasn't done.
>
> Sorry for long absence.
>
> I've used the word "halfway" because I didn't have enough time to
> examine that patch at that time.  I tested the patch, and now I think
> it's OK to apply.  One concern is that there is no mention about
> unavailable system columns in any document.  ddl.sgml has main
> description of system columns, but it just says:
>
> <quote>
> Every table has several system columns that are implicitly defined by
> the system.
> </quote>
>
> Since this doesn't mention detailed type of relation, such as VIEW and
> COMPOSITE TYPE, IMO we can leave this paragraph as is.
>
> BTW, I still think that tableoid is useful if foreign tables can inherit
> other tables.  With such feature, tableoid of foreign table is necessary
> to determine actual source table.  Once we want to support that feature,
> IMO we should revive tableoid system column for foreign tables.

I'm not familiar with foreign table inheritance, or how it would work.
If that's something that will likely be introduced in future, then
surely we'd want to keep the tableoid column rather than removing it
then re-introducing it later?

--
Thom

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannes Frederic Sowa 2012-02-28 09:45:06 Re: [PATCH] Documentation: remove confusing paragraph about backslash escaping
Previous Message Fujii Masao 2012-02-28 09:08:25 Re: incorrect handling of the timeout in pg_receivexlog