public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Klaver <[email protected]>
To: Patrick FICHE <[email protected]>
To: [email protected] <[email protected]>
Subject: Re: Retrieve filename within a script
Date: Fri, 15 Nov 2024 07:48:10 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <DUZPR05MB110211E125949ECF03413C533EF5B2@DUZPR05MB11021.eurprd05.prod.outlook.com>
References: <DUZPR05MB110211E125949ECF03413C533EF5B2@DUZPR05MB11021.eurprd05.prod.outlook.com>

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
[email protected]







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], [email protected]
  Subject: Re: Retrieve filename within a script
  In-Reply-To: <[email protected]>

* 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