Re: real/float example for testlibpq3

Поиск
Список
Период
Сортировка
От Mark Wong
Тема Re: real/float example for testlibpq3
Дата
Msg-id YqjH9qGaIixfZXQo@workstation-mark-wong
обсуждение исходный текст
Ответ на Re: real/float example for testlibpq3  (Greg Stark <stark@mit.edu>)
Ответы Re: real/float example for testlibpq3  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Wed, Mar 30, 2022 at 01:16:37PM -0400, Greg Stark wrote:
> On Mon, 28 Feb 2022 at 17:50, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >
> > Chapman Flack <chap@anastigmatix.net> writes:
> > > In the current state of affairs, what's considered the ur-source of that
> > > information?
> >
> > The source code for the type's send/receive functions :-(.  One could
> > wish for something better, but no one has stepped up to produce such
> > documentation.
> 
> Fwiw the client library I heard of attempting to have good binary mode
> support was the Crystal language client
> https://github.com/will/crystal-pg. I think he was aiming for full
> coverage of the built-in data types. That might make a good reference
> implementation to write up documentation from. He probably uncovered
> some corner cases in development that one might not find from just
> inspection of the server code.

Checking in for quick feedback to see if this refactor makes sense.

I've created a function for each data type with the idea that an example
for handling a specific data type can be more easily reviewed by looking
in a single place.

I've added examples for REAL, TIMESTAMP WITHOUT TIME ZONE, and BOOLEAN
to try to illustrate how testlibpq3.sql and testlibpq3.c will grow if
this is a good way to go.

Regards,
Mark

Вложения

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Small TAP improvements
Следующее
От: Robert Haas
Дата:
Сообщение: Re: better page-level checksums