Re: quote_literal(integer) does not exist

Andrew Dunstan <andrew@dunslane.net>

From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Brendan Jurd <direvus@gmail.com>, Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>, pgsql-hackers@postgresql.org
Date: 2007-11-26T04:58:51Z
Lists: 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