Re: Timing events WIP v1 - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: Timing events WIP v1
Date
Msg-id 50AC2822.1020401@2ndQuadrant.com
Whole thread Raw
In response to Re: Timing events WIP v1  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Timing events WIP v1  (Greg Smith <greg@2ndQuadrant.com>)
List pgsql-hackers
On 11/20/2012 04:48 PM, Pavel Stehule wrote:
> 2012/11/20 Greg Smith <greg@2ndquadrant.com>:
>> On 11/16/12 12:20 AM, Craig Ringer wrote:
>>
>>> Not that implementing `hstore_to_json` is exactly hard, mind you, as a
>>> quick search shows: https://gist.github.com/2318757
>>
>> Both pulling hstore more firmly into core and adopting something like a
>> hstore_to_json call as the preferred UI for timing event data are all
>> directions I'd be happy to go.  That's why I stopped before trying to even
>> implement that part.  I think the general direction to go is clear, but the
>> details on how to present the resulting data is more of a tarp than even a
>> bikeshed at this point.  It's not a hard problem though.
>>
> I don't like to see current hstore in core - It doesn't support
> nesting, it doesn't support different datatypes, it is not well
> supported by plpgsql
>

... or by many client libraries, though converting hstore values to json
notation for output usually takes care of that.

I can't help but suspect that hstore will be subsumed by native storage
and indexing of json objects, since these are already widely supported
in KV or document stores. Of course, that requires that we come to some
agreement on how to represent literal scalars for interaction with json,
which hasn't seen much progress.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services




pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: StrategyGetBuffer questions
Next
From: Abhijit Menon-Sen
Date:
Subject: Re: [PATCH] binary heap implementation