Re: psql command aliases support

From: Bernd Helmle <mailings(at)oopsware(dot)de>
To: Gregory Stark <stark(at)enterprisedb(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: psql command aliases support
Date: 2008-04-03 14:49:43
Message-ID: 37156A895CC845E98AB9531D@imhotep.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

--On Donnerstag, April 03, 2008 14:36:59 +0100 Gregory Stark
<stark(at)enterprisedb(dot)com> wrote:

>> \o foo instead of \i foo -- check your keyboard layout
>
> The point is here you've typed a different command entirely.
> Unsurprisingly it's going to do something different.

Uh well, you surely don't know that if you accidently hit o instead of
i....one reason more for an alias \output and \input ;)

To be serious, i take your point, but i'm under the impression that you
simply can't safe the user against all mistakes they are going to make
ever. Your concerns apply to every existing alias implementation as well
and you aren't safe against decisions of your distributor to add
conflicting aliases to their default bashrc as well.

--
Thanks

Bernd

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Heikki Linnakangas 2008-04-03 15:00:53 Re: [PATCHES] Re: BUG #4070: Join more then ~15 tables let postgreSQL produces wrong data
Previous Message Dawid Kuroczko 2008-04-03 14:49:21 Re: psql \G command -- send query and output using extended format