Skip site navigation (1) Skip section navigation (2)

Re: Doing psql's lexing with flex

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-patches(at)postgreSQL(dot)org
Subject: Re: Doing psql's lexing with flex
Date: 2004-02-18 17:33:59
Message-ID: 200402181833.59303.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-patches
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.


In response to

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2004-02-18 17:42:28
Subject: Re: Doing psql's lexing with flex
Previous:From: Hans-Jürgen SchönigDate: 2004-02-18 17:14:15
Subject: NO WAIT ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group