Re: Need feedback on new feature (\for) - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Need feedback on new feature (\for)
Date
Msg-id 20030825084852.GA26027@svana.org
Whole thread Raw
In response to Re: Need feedback on new feature (\for)  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
On Sun, Aug 24, 2003 at 09:29:05PM -0400, Bruce Momjian wrote:
> Tom Lane wrote:
> > I said:
> > > ... I think it makes much more sense to push the
> > > complexity into the control query and keep the substitution rules
> > > non-surprising.
> >
> > BTW, taking that approach as gospel, we could forget my idea of
> > declaring datatypes for the control-query results.  Just substitute
> > 'em literally.  The quoting transformations could be done easily in
> > the control query with quote_literal() or quote_ident().
>
> Has the patch author looked at how psql variables adds quotes, usually
> like:
>
>     "\"":var"\""
>
> It is ugly, but it seems like the clearest way.

That's another solution. I've been a bit short of time recently but at some
stage I'm going to rework it to take some of the suggestions people made.
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> "All that is needed for the forces of evil to triumph is for enough good
> men to do nothing." - Edmond Burke
> "The penalty good people pay for not being interested in politics is to be
> governed by people worse than themselves." - Plato

Attachment

pgsql-general by date:

Previous
From: rifki
Date:
Subject: support for OO query
Next
From: Hervé Piedvache
Date:
Subject: Re: WAL Files checkpoint_timeout with voluminous delete/insert