Re: Typed hstore proposal

From: Christopher Browne <cbbrowne(at)gmail(dot)com>
To: "Johann 'Myrkraverk' Oskarsson" <johann(at)2ndquadrant(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Typed hstore proposal
Date: 2011-12-22 03:40:02
Message-ID: CAFNqd5XjPfFJ9Wu4g_5vLGcWua4BW8ng4LZmCNJrV3RGaver=w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Dec 21, 2011 at 8:32 PM, Johann 'Myrkraverk' Oskarsson
<johann(at)2ndquadrant(dot)com> wrote:
> I mean to create a typed hstore, called tstore for now.  I'm open to
> name suggestions.  It'll only support a subset of core Postgres types
> to begin with.  Keys are always text, it's the value that's typed.

Unfortunately, I'm not sure it'll be of much interest unless it heads
all the way to having nested data.

JSON is the "thing of the day" that it would be desirable for this to
be potent enough to represent, and JSON has the following types:

1. Number (in practice, FLOAT)
2. String (UTF-8)
3. Boolean (t/f)
4. Array (not necessarily of uniform type
5. Object (string key, JSON value pairs, unordered)
6. NULL

#4 and #5 are obviously entirely more "hairy."

But it seems pretty likely that people would be keen on additional
implementations until they get those.
--
When confronted by a difficult problem, solve it by reducing it to the
question, "How would the Lone Ranger handle this?"

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2011-12-22 05:08:16 Re: Page Checksums + Double Writes
Previous Message Johann 'Myrkraverk' Oskarsson 2011-12-22 01:32:43 Typed hstore proposal