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

Re: Patch (tiny): \cd (change dir) for psql [with feedback]

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Mark Hamby <mark(at)archer(dot)leavenworth(dot)army(dot)mil>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch (tiny): \cd (change dir) for psql [with feedback]
Date: 2001-03-26 19:33:11
Message-ID: 200103261933.OAA00637@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-patches
Seems interesting.  We already have \c overloaded with stuff like
connect, copy, and copyright, so I guess another one wouldn't hurt.  I
will keep this for 7.2.  Thanks.

[ Charset ISO-8859-1 unsupported, converting... ]
> 
> (Sorry for the repost. I have amended my previous patch 
> with feedback that outputs the new current directory.)
> 
> 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.
> 
> Hope you like,
> 
> Mark Hamby
> 
> P.S. I am not on the 'psql-patches' list, so responses should
> be sent directly to me for more info or questions.

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-patches by date

Next:From: Mark HambyDate: 2001-03-26 20:04:03
Subject: Patch (tiny): \cd (change dir) for psql [with feedback]
Previous:From: Mark HambyDate: 2001-03-26 16:57:24
Subject: Patch (tiny): \cd (change dir) for psql.

pgsql-general by date

Next:From: Vince VielhaberDate: 2001-03-26 19:41:26
Subject: RE: PostgreSQL under Windows?
Previous:From: Kevin LDate: 2001-03-26 19:20:22
Subject: adding default values doesn't work

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