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

From David Fetter
Subject Re: Fwd: psql include file using relative path
Date
Msg-id 20110310003230.GB16733@fetter.org
Whole thread Raw
In response to Re: Fwd: psql include file using relative path  (Gurjeet Singh <singh.gurjeet@gmail.com>)
Responses Re: Fwd: psql include file using relative path
Re: Fwd: psql include file using relative path
List pgsql-hackers
On Wed, Mar 09, 2011 at 07:05:19PM -0500, Gurjeet Singh wrote:
> Good question, I hadn't thought of that either, and thinking about
> it a bit I think we'd want to keep the current behaviour of \i and
> provide new behaviour using a new command.
> 
> Say when we are processing a pretty nested file after multiple \ir
> commands, a \i <relative path file> in any of those files should
> look for that file in psql's CWD/PWD. That is what the user expects
> from \i command currently and I don't think it'd be desirable to
> break that assumption.

I'm not sure I understand.  Stuff that worked before would still work.

Should stuff break when it has a legitimately accessible path in it
just because that path is relative?

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Nikhil Sontakke
Date:
Subject: Re: Fwd: index corruption in PG 8.3.13
Next
From: Alvaro Herrera
Date:
Subject: Re: Fwd: index corruption in PG 8.3.13