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

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

From: "Mark Hamby" <mark(at)archer(dot)leavenworth(dot)army(dot)mil>
To: <pgsql-general(at)postgresql(dot)org>, <pgsql-patches(at)postgresql(dot)org>
Subject: Patch (tiny): \cd (change dir) for psql [with feedback]
Date: 2001-03-26 20:04:03
Message-ID: NCBBJHAODFJBGACGMCEJMEFDCHAA.mark@archer.leavenworth.army.mil (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-patches
(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: cd-patch.dif
Description: application/octet-stream (1.7 KB)

Responses

pgsql-patches by date

Next:From: Peter EisentrautDate: 2001-03-26 20:04:13
Subject: Re: [GENERAL] Patch (tiny): \cd (change dir) for psql [with feedback]
Previous:From: Bruce MomjianDate: 2001-03-26 19:33:11
Subject: Re: Patch (tiny): \cd (change dir) for psql [with feedback]

pgsql-general by date

Next:From: Peter EisentrautDate: 2001-03-26 20:04:13
Subject: Re: [GENERAL] Patch (tiny): \cd (change dir) for psql [with feedback]
Previous:From: will trillichDate: 2001-03-26 20:02:45
Subject: Re: Free PostgreSQL Database Hosting - Needs Beta Testers

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