| From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Brendan Jurd <direvus(at)gmail(dot)com>, Andreas 'ads' Scherbaum <adsmail(at)wars-nicht(dot)de>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: quote_literal(integer) does not exist |
| Date: | 2007-11-26 04:58:51 |
| Message-ID: | 474A528B.8020408@dunslane.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Simon Riggs | 2007-11-26 08:10:02 | Re: 8.3devel slower than 8.2 under read-only load |
| Previous Message | Gregory Stark | 2007-11-26 03:15:18 | Re: quote_literal(integer) does not exist |