Re: psql command aliases support

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Bernd Helmle" <mailings(at)oopsware(dot)de>
Cc: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, <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 09:54:48
Message-ID: 87d4p7s1p3.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

"Bernd Helmle" <mailings(at)oopsware(dot)de> writes:

>> Picture a newbie typoing on their \old alias and trying to figure out
>> where all their data is going... Hopefully they weren't too attached to
>> whatever was in their "ldd" file yesterday.
>
> Of course, the patch doesn't work this way. Only complete tokens delivered by
> the parser are substituted, illustrated here with your example:

To be more explicit what I meant was someone doing

#= \alias old select version();
...
#= \oldd
<oops>
#= \old
#= select 'where is all my output going?'
#= select 'what happened to my ldd file?'

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's RemoteDBA services!

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Dawid Kuroczko 2008-04-03 12:44:53 Re: psql \G command -- send query and output using extended format
Previous Message Bernd Helmle 2008-04-03 08:34:56 Re: psql command aliases support