Re: Fwd: psql include file using relative path

From: Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>, PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fwd: psql include file using relative path
Date: 2011-03-08 19:18:08
Message-ID: AANLkTimnLTFr8T2U9itkcqJk=MXu7B5-0nfgYSxOsDr+@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gurjeet!

What about tab completion, like in \i command?

On Fri, Feb 25, 2011 at 5:07 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Thu, Feb 24, 2011 at 6:21 PM, Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)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
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

--
   Ibrar Ahmed

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2011-03-08 20:11:47 Re: .gitignore patch for coverage builds
Previous Message Heikki Linnakangas 2011-03-08 19:00:14 Re: Re: PD_ALL_VISIBLE flag was incorrectly set happend during repeatable vacuum