Retrieve filename within a script

Patrick FICHE <patrick.fiche@aqsacom.com>

From: Patrick FICHE <Patrick.Fiche@aqsacom.com>
To: "pgsql-general@lists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2024-11-14T08:42:36Z
Lists: 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