Skip site navigation (1) Skip section navigation (2)

Re: Fwd: psql include file using relative path

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fwd: psql include file using relative path
Date: 2011-02-25 00:07:02
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
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:

Robert Haas
The Enterprise PostgreSQL Company

In response to


pgsql-hackers by date

Next:From: Robert HaasDate: 2011-02-25 00:08:01
Subject: Re: WIP: collect frequency statistics for arrays
Previous:From: Marko TiikkajaDate: 2011-02-25 00:06:57
Subject: Re: wCTE behaviour

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group