Retrieve filename within a script - Mailing list pgsql-general

From Patrick FICHE
Subject Retrieve filename within a script
Date
Msg-id DUZPR05MB110211E125949ECF03413C533EF5B2@DUZPR05MB11021.eurprd05.prod.outlook.com
Whole thread Raw
Responses Re: Retrieve filename within a script
Re: Retrieve filename within a script
List 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 by date:

Previous
From: Mark Phillips
Date:
Subject: Re: Row level security policy
Next
From: Johannes Lochmann
Date:
Subject: Re: question on audit columns