Re: Retrieve filename within a script

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Retrieve filename within a script
Дата
Msg-id a227bc4f-cfc0-4b65-8c40-4cc03092e1bb@aklaver.com
обсуждение исходный текст
Ответ на Retrieve filename within a script  (Patrick FICHE <Patrick.Fiche@aqsacom.com>)
Список pgsql-general
On 11/14/24 00:42, Patrick FICHE wrote:
> Hi,
> 
> I was wondering if it was possible to get the filename provided as an 
> argument to psql.

Not that I know of.

> 
> 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
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




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