Re: [PATCH] Generalized JSON output functions

Поиск
Список
Период
Сортировка
Искать
От
Shulgin, Oleksandr
Тема
Re: [PATCH] Generalized JSON output functions
Дата
Msg-id
CACACo5T67Pto=SAyUDCEUZ0vodVTSp9cup7RwCFzxmeUi=RR5w@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Generalized JSON output functions Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [PATCH] Generalized JSON output functions Merlin Moncure <mmoncure@gmail.com>
Re: [PATCH] Generalized JSON output functions Ryan Pedela <rpedela@datalanche.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Generalized JSON output functions Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Generalized JSON output functions Heikki Linnakangas <hlinnaka@iki.fi>
Re: [PATCH] Generalized JSON output functions Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions Merlin Moncure <mmoncure@gmail.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Ryan Pedela <rpedela@datalanche.com>
Re: [PATCH] Generalized JSON output functions Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Generalized JSON output functions Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Generalized JSON output functions Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Generalized JSON output functions Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Generalized JSON output functions Ryan Pedela <rpedela@datalanche.com>
Re: [PATCH] Generalized JSON output functions Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Generalized JSON output functions Ryan Pedela <rpedela@datalanche.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Generalized JSON output functions Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [PATCH] Generalized JSON output functions Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions Ryan Pedela <rpedela@datalanche.com>
Re: [PATCH] Generalized JSON output functions Pavel Stehule <pavel.stehule@gmail.com>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Andrew Dunstan <andrew@dunslane.net>
Re: [PATCH] Generalized JSON output functions "Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>
Re: [PATCH] Generalized JSON output functions Merlin Moncure <mmoncure@gmail.com>
On Sun, Jul 12, 2015 at 8:39 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:

The thing is - it's not only about whitespace, otherwise I would probably not bother with the generic interface. For my original problem, there is simply no way to do this correctly in an extension w/o copying over all of the logic from json.c, which I have to do right now, would rather not.

I am sorry - we are talking about JSON, not about any styled document. I disagree, so it has not be implemented as extension - the backport of JSON support is a extension.

Hm... I'm having a hard time making sense of that statement, sorry.

To reiterate: for my problem, that is escaping numerics that can potentially overflow[1] under ECMAScript standard, I want to be able to override the code that outputs the numeric converted to string.  There is no way in current implementation to do that *at all*, short of copying all the code involved in producing JSON output and changing it at certain points.  One could try re-parsing JSON instead, but that doesn't actually solve the issue, because type information is lost forever at that point.

The whitespace unification was a mere side-effect of the original effort on this patch.

--
Best regards,
Alex


В списке pgsql-hackers по дате отправления
От: Haribabu Kommi
Дата:
От: Pavel Stehule
Дата:
FAQ