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

From Gregory Stark
Subject Re: psql command aliases support
Date
Msg-id 87d4p7s1p3.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: psql command aliases support  (Bernd Helmle <mailings@oopsware.de>)
Responses Re: psql command aliases support
List pgsql-patches
"Bernd Helmle" <mailings@oopsware.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!

pgsql-patches by date:

Previous
From: Bernd Helmle
Date:
Subject: Re: psql command aliases support
Next
From: Peter Eisentraut
Date:
Subject: Re: psql command aliases support