Retrieve filename within a script

Поиск
Список
Период
Сортировка
От Patrick FICHE
Тема Retrieve filename within a script
Дата
Msg-id DUZPR05MB110211E125949ECF03413C533EF5B2@DUZPR05MB11021.eurprd05.prod.outlook.com
обсуждение исходный текст
Ответы Re: Retrieve filename within a script
Re: Retrieve filename within a script
Список pgsql-general

Hi,

 

I was wondering if it was possible to get the filename provided as an argument to psql.

psql -f /tmp/test.sql

 

I would like a command in test.sql that would be able to retrieve the full pathname (/tmp/test.sql).

 

Regards,

 

 

Patrick

 

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