Re: real/float example for testlibpq3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: real/float example for testlibpq3
Дата
Msg-id 2511609.1646061540@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: real/float example for testlibpq3  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
Ответы Re: real/float example for testlibpq3  (Chapman Flack <chap@anastigmatix.net>)
Список pgsql-hackers
Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> writes:
> I am wondering whether we should provide PQgetfloatvalue() which does
> what that example shows but transparently. It will return a float
> value of the given field instead of char *.

I'm against that, precisely because ...

> That will standardize the
> way to fetch real typed values in libpq. That leads to the next
> question. Do we need to introduce different PQget*value() for standard
> C/SQL data types.

... I do not want to go here.  Where would you stop?  How would you
deal with cross-machine inconsistencies in integer widths?

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql: Make SSL info display more compact
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Use "WAL segment" instead of "log segment" consistently in user-facing messages