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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FDW API: don't like the EXPLAIN mechanism
Дата
Msg-id 15475.1298307003@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: FDW API: don't like the EXPLAIN mechanism  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Excerpts from Andrew Dunstan's message of lun feb 21 13:11:25 -0300 2011:
>> If we allow the invention of new explain states we'll never be able to 
>> publish an authoritative schema definition of the data. That's not 
>> necessarily an argument against doing it, just something to be aware of. 
>> Maybe we don't care about having EXPLAIN XML output validated.

> The alternative seems to be to let this information proliferate in free
> form (say as text inside some other node), which may be even less convenient.

Yeah; that's exactly what the patch-as-submitted did, and that way was
surely not better from the standpoint of machine parsing the output.
If you really want to lock down the output format to only what is
specified by the core code, then the answer is to forget about giving
FDWs an explain hook at all.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Mark Mielke
Дата:
Сообщение: Re: FDW API: don't like the EXPLAIN mechanism
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: FDW API: don't like the EXPLAIN mechanism