Re: Fwd: psql include file using relative path - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Fwd: psql include file using relative path
Date
Msg-id AANLkTikS_faU0nrqE23DKknkniS8N18xhHTE9BKEMYDy@mail.gmail.com
Whole thread Raw
In response to Fwd: psql include file using relative path  (Gurjeet Singh <singh.gurjeet@gmail.com>)
Responses Re: Fwd: psql include file using relative path  (Ibrar Ahmed <ibrar.ahmad@gmail.com>)
List pgsql-hackers
On Thu, Feb 24, 2011 at 6:21 PM, Gurjeet Singh <singh.gurjeet@gmail.com> wrote:
>     psql has the ability to execute commands from a file, but if one wishes
> to develop and provide a modularized set of sql files, then psql is not very
> helpful because the \i command can open file paths either if they are
> absolute paths or if they are palced correctly relative to psql's current
> working directory.
>
> Attached patch adds a new meta-command to psql, '\ir' that allows the user
> to process files relative to currently processing file.

Please add this patch to the currently open CommitFest at:

https://commitfest.postgresql.org/action/commitfest_view/open

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Allow pg_archivecleanup to ignore extensions
Next
From: Daniel Farina
Date:
Subject: Re: Sync Rep v17