Re: DWIM mode for psql

Поиск
Список
Период
Сортировка
От legrand legrand
Тема Re: DWIM mode for psql
Дата
Msg-id 1554151707722-0.post@n3.nabble.com
обсуждение исходный текст
Ответ на Re: DWIM mode for psql  (Andreas Karlsson <andreas@proxel.se>)
Список pgsql-hackers
Andreas Karlsson wrote
> On 3/31/19 10:52 PM, Thomas Munro wrote:> Building on the excellent work
> begun by commit e529cd4ffa60, I would
>> like to propose a do-what-I-mean mode for psql.  Please find a POC
>> patch attached.  It works like this:
>>
>> postgres=# select datnaam from pg_database where ooid = 12917;
>> ERROR:  column "datnaam" does not exist
>> LINE 1: select datnaam from pg_database where ooid = 12917;
>>                 ^
>> HINT:  Perhaps you meant to reference the column "pg_database.datname".
>> postgres=# YES
>>   datname
>> ----------
>>   postgres
>> (1 row)
>
> I think it is potentially confusing that YES and NO does not look like
> other psql commands. Let's pick something which is more in line with
> existing commands like \y and \n.
>
> Andreas

+1
Regards
>-)))°>



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html



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

Предыдущее
От: Rahila Syed
Дата:
Сообщение: Re: monitoring CREATE INDEX [CONCURRENTLY]
Следующее
От: Chapman Flack
Дата:
Сообщение: Re: Fix XML handling with DOCTYPE