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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-sql by date

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