public inbox for [email protected]
help / color / mirror / Atom feedFrom: Patrick FICHE <[email protected]>
To: [email protected] <[email protected]>
Subject: Retrieve filename within a script
Date: Thu, 14 Nov 2024 08:42:36 +0000
Message-ID: <DUZPR05MB110211E125949ECF03413C533EF5B2@DUZPR05MB11021.eurprd05.prod.outlook.com> (raw)
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
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Retrieve filename within a script
In-Reply-To: <DUZPR05MB110211E125949ECF03413C533EF5B2@DUZPR05MB11021.eurprd05.prod.outlook.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox