Search Postgresql Archives

Re: Retrieve filename within a script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux