Re: Fwd: psql include file using relative path
Gurjeet Singh <singh.gurjeet@gmail.com>
From: Gurjeet Singh <singh.gurjeet@gmail.com>
To: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, PGSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2011-03-08T20:19:40Z
Lists: pgsql-hackers
Attachments
- psql_ir.patch.gz (application/x-gzip) patch
Attached patch implements tab completion. It also introduces the long-form alternative \include_relative for \ir Regards, On Tue, Mar 8, 2011 at 2:18 PM, Ibrar Ahmed <ibrar.ahmad@gmail.com> wrote: > Gurjeet! > > What about tab completion, like in \i command? > > On Fri, Feb 25, 2011 at 5:07 AM, Robert Haas <robertmhaas@gmail.com> > wrote: > > 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 > > > > -- > > Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) > > To make changes to your subscription: > > http://www.postgresql.org/mailpref/pgsql-hackers > > > > > > -- > Ibrar Ahmed > -- Gurjeet Singh EnterpriseDB <http://www.enterprisedb.com/> Corporation The Enterprise PostgreSQL <http://www.postgresql.org/> Company