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

Re: Function Syntax involving pipes and ' marks?

From: Bricklen Anderson <banderson(at)presinet(dot)com>
To: Ruben Gouveia <rubes7202(at)gmail(dot)com>
Cc: pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Function Syntax involving pipes and ' marks?
Date: 2008-09-10 18:36:41
Message-ID: 48C813B9.1010201@presinet.com (view raw or flat)
Thread:
Lists: pgsql-sql
Ruben Gouveia wrote:
> Is that more expensive to run than just useing a bunch of ticks?

>> Try wrapping your p_date in a quote_literal like
>> ...
>> 'where m.jb_date < '||quote_literal(p_date+INTEGER '1')||' and ...

I personally have never noticed any increased overhead from quote_literal.

In response to

Responses

pgsql-sql by date

Next:From: Ruben GouveiaDate: 2008-09-10 18:38:34
Subject: Re: Function Syntax involving pipes and ' marks?
Previous:From: Bricklen AndersonDate: 2008-09-10 18:24:16
Subject: Re: Function Syntax involving pipes and ' marks?

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