Re: Re: Patch (tiny): \cd (change dir) for psql. - Mailing list pgsql-general

From will trillich
Subject Re: Re: Patch (tiny): \cd (change dir) for psql.
Date
Msg-id 20010327105219.A1685@mail.serensoft.com
Whole thread Raw
In response to Re: Re: Patch (tiny): \cd (change dir) for psql.  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Re: Patch (tiny): \cd (change dir) for psql.
List pgsql-general
On Tue, Mar 27, 2001 at 09:52:05AM -0500, Bruce Momjian wrote:
> > On Mon, 26 Mar 2001 15:07:37 +0000 (UTC), Mark Hamby
> > <mark@archer.leavenworth.army.mil> wrote:
> > >
> > >
> > >Here's a patch for a \cd (change dir) command in psql program.
> > >It's very small and only adds a few lines.
> > >Personally, I am surprised psql does not have this command.
> > >It is EXTREMELY useful when \include'ing SQL scripts to set
> > >up a database schema.
> > >
> >
> > It's a good idea. This is an itch I've needed scratched many times.
> >
>
> Will be in 7.2.

and with it i'd imagine we'll also need

    # return to previous directory, for the lazy
    \cd -
    # show current working directory
    \cwd
    \pwd

of course, we could continue working the way we are now:

    somePsqlDb=> \q
    % cd /some/where/over/the/rainbow
    % psql mydata
    mydata=>

but why? :)

--
It is always hazardous to ask "Why?" in science, but it is often
interesting to do so just the same.
        -- Isaac Asimov, 'The Genetic Code'

will@serensoft.com
http://newbieDoc.sourceforge.net/ -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

pgsql-general by date:

Previous
From: will trillich
Date:
Subject: Re: Supertypes?
Next
From: Peter Eisentraut
Date:
Subject: Re: Re: Patch (tiny): \cd (change dir) for psql.