Re: quote_literal(integer) does not exist - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: quote_literal(integer) does not exist
Date
Msg-id 474A528B.8020408@dunslane.net
Whole thread Raw
In response to Re: quote_literal(integer) does not exist  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:

[...]
>  it seems that quote_literal() has a good case,
> and you could also make an argument for allowing a non-text second
> argument for set_config()
>
>   
[...]
> Thoughts?
>
>     
>   

I think there is just enough of  a case for quote_literal(), although in 
my experience the vast majority of places where it is used in fact 
should be replaced by using placeholders. I find that I need to use it 
very rarely indeed.

The case for set_config() is less compelling.

cheers

andrew


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: quote_literal(integer) does not exist
Next
From: Simon Riggs
Date:
Subject: Re: 8.3devel slower than 8.2 under read-only load