public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: Edwin UY <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: Re: PATH for your scripts/SQL for psql
Date: Mon, 19 May 2025 18:35:36 -0700
Message-ID: <CAKFQuwa2ELtLb3bWwO_v_rX0tPjkcpg+=1e0Sg3TwQDN3Z5e9A@mail.gmail.com> (raw)
In-Reply-To: <CA+wokJ9EpO0FXxpVTcgsuuL0SehdFwEdJz3ZBKJKbMJtskhfuA@mail.gmail.com>
References: <CA+wokJ9EpO0FXxpVTcgsuuL0SehdFwEdJz3ZBKJKbMJtskhfuA@mail.gmail.com>
On Monday, May 19, 2025, Edwin UY <[email protected]> wrote:
> Hi,
>
> Is there any settings that you can set for the PATH of your SQL/scripts so
> you don't have to cd where they are or specify the full path?
> Kinda like the *nix PATH settings where you can PATH to it and you just
> run your command/scripts
> FYI, I am NOT using psql on the database server.
>
Unable to test it right now but in Linux you should be able to add a
shebang line at the top and make the file executable. Then make sure it is
in PATH.
David J.
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: PATH for your scripts/SQL for psql
In-Reply-To: <CAKFQuwa2ELtLb3bWwO_v_rX0tPjkcpg+=1e0Sg3TwQDN3Z5e9A@mail.gmail.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