Re: Issue with psqlrc with command line.

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Issue with psqlrc with command line.
Дата
Msg-id CAKFQuwZsOctTn_2iCzTjkcKvJEq8-AZD2yc_q3amFiZwar9Jtw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Issue with psqlrc with command line.  (saurabh shelar <saurabhshelar5@gmail.com>)
Ответы Re: Issue with psqlrc with command line.  (saurabh shelar <saurabhshelar5@gmail.com>)
Список pgsql-general
On Wednesday, August 29, 2018, saurabh shelar <saurabhshelar5@gmail.com> wrote:
Hi David,

Thank you for the swift response.

However, could you please confirm if the below scenario is expected. 

- included the alias in the file.
- And passed the file with psql and it worked.

-bash-4.2$ cat test 
:testing

-bash-4.2$ /opt/PostgreSQL/9.6/bin/psql -f test 
 id 
----
  1

 Yes.  It’s only -c that is constrained. (There may be some interplay with whether psqlrc is consulted in various situations as well...)

David J.

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

Предыдущее
От: saurabh shelar
Дата:
Сообщение: Re: Issue with psqlrc with command line.
Следующее
От: saurabh shelar
Дата:
Сообщение: Re: Issue with psqlrc with command line.