Re: Retrieve filename within a script - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Retrieve filename within a script
Date
Msg-id a227bc4f-cfc0-4b65-8c40-4cc03092e1bb@aklaver.com
Whole thread Raw
In response to Retrieve filename within a script  (Patrick FICHE <Patrick.Fiche@aqsacom.com>)
List 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 by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: DB Files
Next
From: Torsten Förtsch
Date:
Subject: Re: DB Files