Re: Scripting with subdirectories - how to specify script locations.

From: Pól Ua Laoínecháin <linehanp(at)tcd(dot)ie>
To:
Cc: "pgsql-novice(at)lists(dot)postgresql(dot)org" <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: Scripting with subdirectories - how to specify script locations.
Date: 2021-06-02 15:18:40
Message-ID: CAF4RT5Tmckc5amB0Dg==gpGpCVOr-DdbHmp0sRjW=r5Hg9muXg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

>> I know I'm probably missing something basic - could some kind soul
>> point me in the right direction?

> \ir is “include relative”, makes the cwd the directory of the active script instead lf where psql was run from.

Thanks - that did the trick - much nicer than cluttering up the
scripts with cd commands.

Rgs,

Pól...

> David J.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Kim Heckler 2021-06-03 17:01:16 Database copy
Previous Message David G. Johnston 2021-06-02 13:33:32 Re: Scripting with subdirectories - how to specify script locations.