15 PM (GMT-05:00)
To: pgsql-general <pgsql-gene...@postgresql.org>
Subject: psql in a bash function
Hi,
Because I need to log into many servers, I created functions as keyboard
shortcuts (not aliases, since I will want to embed these shortcuts in other
functions).
psqlxyz ()
{
e
On Mon, Mar 12, 2018 at 2:14 PM, Ron Johnson wrote:
> Hi,
>
> Because I need to log into many servers, I created functions as keyboard
> shortcuts (not aliases, since I will want to embed these shortcuts in other
> functions).
>
> psqlxyz ()
> {
> echo "P1=$1";
>
Hi,
Because I need to log into many servers, I created functions as keyboard
shortcuts (not aliases, since I will want to embed these shortcuts in other
functions).
psqlxyz ()
{
echo "P1=$1";
echo "P2=$2";
psql -U postgres -h XYZ $@
}
This is the (simple, test) command that I