Re: Correctly producing array literals for prepared statements

Поиск
Список
Период
Сортировка
Искать
От
Greg Stark
Тема
Re: Correctly producing array literals for prepared statements
Дата
Msg-id
AANLkTi=CyXRYC54mA-3atQ22UMc1_1e92A0tWVi1qTjy@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Correctly producing array literals for prepared statements Peter Geoghegan <peter.geoghegan86@gmail.com>
Re: Correctly producing array literals for prepared statements Greg Stark <gsstark@mit.edu>
Re: Correctly producing array literals for prepared statements Tatsuo Ishii <ishii@postgresql.org>
Re: Correctly producing array literals for prepared statements Peter Geoghegan <peter.geoghegan86@gmail.com>
Re: Correctly producing array literals for prepared statements Andrew Dunstan <andrew@dunslane.net>
Re: Correctly producing array literals for prepared statements Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Correctly producing array literals for prepared statements Tom Lane <tgl@sss.pgh.pa.us>
Re: Correctly producing array literals for prepared statements Andrew Dunstan <andrew@dunslane.net>
Re: Correctly producing array literals for prepared statements Greg Stark <gsstark@mit.edu>
Re: Correctly producing array literals for prepared statements Merlin Moncure <mmoncure@gmail.com>
Re: Correctly producing array literals for prepared statements Kenneth Marshall <ktm@rice.edu>
Re: Correctly producing array literals for prepared statements Andrew Dunstan <andrew@dunslane.net>
Re: Correctly producing array literals for prepared statements Andrew Chernow <ac@esilo.com>
Re: Correctly producing array literals for prepared statements Andrew Dunstan <andrew@dunslane.net>
Re: Correctly producing array literals for prepared statements Andrew Chernow <ac@esilo.com>
Re: Correctly producing array literals for prepared statements Peter Geoghegan <peter.geoghegan86@gmail.com>
Re: Correctly producing array literals for prepared statements Andrew Chernow <ac@esilo.com>
Re: Correctly producing array literals for prepared statements Kenneth Marshall <ktm@rice.edu>
On Wed, Feb 23, 2011 at 4:16 AM, Peter Geoghegan
 wrote:
> Since Postgres only supports encodings that are ASCII supersets, I
> don't believe that I have to consider encoding - only my clients do.
>

This is only true for server encodings. In a client library I think
you lose on this and do have to deal with it. I'm not sure what client
encodings we do support that aren't ascii-supersets though, it's
possible none of them generate quote characters this way.

I'm a bit surprised libpqxx isn't using binary mode internally though.
This would at least avoid the problems with encoding. However I'm not
sure things like the array binary format are really stable and
portable enough to really use from a client library. Some datatypes
might be dependent on the server ABI (floats -- I'm looking at you) so
that might make it difficult or impossible.

-- 
greg

В списке pgsql-hackers по дате отправления
От: Peter Geoghegan
Дата:
От: Kevin Grittner
Дата:
Сообщение: Re: SSI bug?
FAQ