Re: psql command aliases support - Mailing list pgsql-patches

From Bernd Helmle
Subject Re: psql command aliases support
Date
Msg-id 37156A895CC845E98AB9531D@imhotep.credativ.de
Whole thread Raw
In response to Re: psql command aliases support  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: psql command aliases support  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-patches
--On Donnerstag, April 03, 2008 14:36:59 +0100 Gregory Stark
<stark@enterprisedb.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

pgsql-patches by date:

Previous
From: "Hell, Robert"
Date:
Subject: GUC parameter cursors_tuple_fraction
Next
From: Heikki Linnakangas
Date:
Subject: Re: Re: [BUGS] BUG #4070: Join more then ~15 tables let postgreSQL produces wrong data