[HACKERS] Feature Request: JSON input for hstore

2009-09-14 Thread Josh Berkus
Hackers, I've just had a feature request from a client that we come up with a way to enable JSON input into hstore. This would make hstore much more useful for software developers. First question: would this go in the language driver, libpq, or the backend? Thoughts? -- Josh Berkus

Re: [HACKERS] Feature Request: JSON input for hstore

2009-09-14 Thread David Fetter
On Mon, Sep 14, 2009 at 03:14:57PM -0700, Josh Berkus wrote: Hackers, I've just had a feature request from a client that we come up with a way to enable JSON input into hstore. This would make hstore much more useful for software developers. First question: would this go in the language

Re: [HACKERS] Feature Request: JSON input for hstore

2009-09-14 Thread Andrew Dunstan
David Fetter wrote: On Mon, Sep 14, 2009 at 03:14:57PM -0700, Josh Berkus wrote: Hackers, I've just had a feature request from a client that we come up with a way to enable JSON input into hstore. This would make hstore much more useful for software developers. First question: would

Re: [HACKERS] Feature Request: JSON input for hstore

2009-09-14 Thread Tom Lane
David Fetter da...@fetter.org writes: On Mon, Sep 14, 2009 at 03:14:57PM -0700, Josh Berkus wrote: I've just had a feature request from a client that we come up with a way to enable JSON input into hstore. This would make hstore much more useful for software developers. First question:

Re: [HACKERS] Feature Request: JSON input for hstore

2009-09-14 Thread Jeff Davis
On Mon, 2009-09-14 at 15:14 -0700, Josh Berkus wrote: Hackers, I've just had a feature request from a client that we come up with a way to enable JSON input into hstore. This would make hstore much more useful for software developers. First question: would this go in the language driver,

Re: [HACKERS] Feature Request: JSON input for hstore

2009-09-14 Thread Robert Haas
On Sep 14, 2009, at 7:05 PM, Jeff Davis pg...@j-davis.com wrote: On Mon, 2009-09-14 at 15:14 -0700, Josh Berkus wrote: Hackers, I've just had a feature request from a client that we come up with a way to enable JSON input into hstore. This would make hstore much more useful for software

Re: [HACKERS] Feature Request: JSON input for hstore

2009-09-14 Thread David E. Wheeler
On Sep 14, 2009, at 4:32 PM, Robert Haas wrote: What's wrong with just using a variant of the type input function? With a parameterized insert, it doesn't seem like it's really placing much of a burden on the application. Agreed, I was thinking the same thing. And the type output

Re: [HACKERS] Feature Request: JSON input for hstore

2009-09-14 Thread Robert Haas
On Mon, Sep 14, 2009 at 7:42 PM, David E. Wheeler da...@kineticode.com wrote: On Sep 14, 2009, at 4:32 PM, Robert Haas wrote: What's wrong with just using a variant of the type input function? With a parameterized insert, it doesn't seem like it's really placing much of a burden on the

Re: [HACKERS] Feature Request: JSON input for hstore

2009-09-14 Thread Andrew Dunstan
David Fetter wrote: On Mon, Sep 14, 2009 at 06:55:52PM -0400, Andrew Dunstan wrote: David Fetter wrote: On Mon, Sep 14, 2009 at 03:14:57PM -0700, Josh Berkus wrote: Hackers, I've just had a feature request from a client that we come up with a way to enable JSON input into