Re: proposal: alternative psql commands quit and exit

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: proposal: alternative psql commands quit and exit
Дата
Msg-id 20180202053928.GA13472@momjian.us
обсуждение исходный текст
Ответ на Re: proposal: alternative psql commands quit and exit  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: proposal: alternative psql commands quit and exit
Список pgsql-hackers
I just thought of an inconsistency.  First, we now consistently exit with
'exit', 'quit', and '\q' if used in an empty psql query buffer.  Also, we now
hint when 'exit' and 'quit' are used in non-empty query buffers:

    test=> SELECT
    test-> exit
-->    Use \q to quit.

We obviously don't need to hint for '\q' since it works in this context.

Where it is odd is that we hint for 'exit' and 'quit' in places that
'\q' doesn't work, but we don't hint for '\q' in the same contexts. 
Here is the hint for 'exit' and 'quit':

    test=> SELECT '
    test'> exit
-->    Use control-D to quit.

but we don't hint for '\q':

    test=> SELECT '
    test'> \q
-->    test'>

Should we give the same "Use control-D to quit." hint here for '\q'?
I think it is logical that we should.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: JIT compiling with LLVM v9.0
Следующее
От: Amit Langote
Дата:
Сообщение: Re: [HACKERS] path toward faster partition pruning