Re: [COMMITTERS] pgsql: Add psql tab completion for DO blocks.

Поиск
Список
Период
Сортировка
От Takahiro Itagaki
Тема Re: [COMMITTERS] pgsql: Add psql tab completion for DO blocks.
Дата
Msg-id 20100215182702.9DD0.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> itagaki@postgresql.org (Takahiro Itagaki) writes:
> This syntax synopsis is completely nuts:
> DO { [ LANGUAGE lang_name ] | code } ...
> 
> I think that it would be logically correct without the square brackets,

Oops, that's correct.

> but as a matter of clarity I really doubt it's an improvement over the
> original.

We cannot write down the accurate syntax with BNF, right? We can have
0..1 "LANGUAGE lang_name", but must have just 1 "code" in any order.

How about the following description?
   DO [ LANGUAGE lang_name ] code

because the psql tab completion adds LANGUAGE just after DO.

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center




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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: [FWD] About "Our CLUSTER implementation is pessimal" patch
Следующее
От: Leonardo F
Дата:
Сообщение: Re: [FWD] About "Our CLUSTER implementation is pessimal" patch