Tom Lane wrote:
> Imagine for example
>       \set foo '\c mydb'
>       blah :foo bar
> The existing code would interpret this as
>       blah \c mydb bar
> but my patch as it stands would behave very strangely --- the \c
> command would see bar as its argument and then 'mydb' would be
> regurgitated after HandleSlashCommand finishes.

Feel free (or encouraged) to change the old behavior.  (Of course, the 
new behavior needs to adjustments, too.)  Generally, I think a variable 
should just stand for a data value and should not result in a slash 
command being generated.


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to