Re: FDW API: don't like the EXPLAIN mechanism

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Mark Mielke <mark(at)mark(dot)mielke(dot)cc>, Shigeru HANADA <hanada(at)metrosystems(dot)co(dot)jp>, Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: FDW API: don't like the EXPLAIN mechanism
Date: 2011-02-21 17:47:54
Message-ID: 4D62A54A.7050306@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 02/21/2011 12:28 PM, Tom Lane wrote:
> Andrew Dunstan<andrew(at)dunslane(dot)net> writes:
>> Regarding your other suggestion, the whole point I have been making is
>> that if external modules can invent arbitrary nodes then we can't
>> publish an XSD (or RelaxNG or DTD) spec that is worth anything at all.
> Well, sure we can. But if you're using any external FDW, you'll need to
> consult its documentation to see what additions it makes.
>
> It may be sufficient to say something like "ForeignScan can have
> unspecified additional children". Dunno if we can formalize that
> in any useful way ...
>
>

Well, you can override definitions, so the FDW could provide a spec that
imported the base spec and then overrode the relevant parts to plug in
its extra nodes. But that would get pretty hairy with more than one FDW.

Still, we've got by so far with no spec at all so maybe it really
doesn't matter.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2011-02-21 17:56:42 Re: Snapshot synchronization, again...
Previous Message Tom Lane 2011-02-21 17:28:01 Re: FDW API: don't like the EXPLAIN mechanism