Re: Re: Patch (tiny): \cd (change dir) for psql.
От | will trillich |
---|---|
Тема | Re: Re: Patch (tiny): \cd (change dir) for psql. |
Дата | |
Msg-id | 20010327105219.A1685@mail.serensoft.com обсуждение исходный текст |
Ответ на | Re: Re: Patch (tiny): \cd (change dir) for psql. (Bruce Momjian <pgman@candle.pha.pa.us>) |
Ответы |
Re: Re: Patch (tiny): \cd (change dir) for psql.
|
Список | 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 по дате отправления: