Re: Function Syntax involving pipes and ' marks? - Mailing list pgsql-sql

From Bricklen Anderson
Subject Re: Function Syntax involving pipes and ' marks?
Date
Msg-id 48C813B9.1010201@presinet.com
Whole thread Raw
In response to Re: Function Syntax involving pipes and ' marks?  (Ruben Gouveia <rubes7202@gmail.com>)
Responses Re: Function Syntax involving pipes and ' marks?
List 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.


pgsql-sql by date:

Previous
From: Bricklen Anderson
Date:
Subject: Re: Function Syntax involving pipes and ' marks?
Next
From: Tom Lane
Date:
Subject: Re: Function Syntax involving pipes and ' marks?