Re: hstores in pl/python - Mailing list pgsql-hackers

From Tom Lane
Subject Re: hstores in pl/python
Date
Msg-id 14588.1292345569@sss.pgh.pa.us
Whole thread Raw
In response to Re: hstores in pl/python  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: hstores in pl/python  (Jan Urbański <wulczer@wulczer.org>)
Re: hstores in pl/python  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> On mån, 2010-12-13 at 08:50 +0100, Jan Urbański wrote:
>> It would be cool to be able to transparently use hstores as Python
>> dictionaries and vice versa. It would be easy enough with hstore as a
>> core type, but with hstore as an addon it's not that easy.

> I have been thinking about this class of problems for a while.  I think
> the proper fix is to have a user-definable mapping between types and
> languages.  It would be another pair of input/output functions,
> essentially.

Interesting thought, but it still leaves you needing to solve the
problem of interconnecting two optional addons ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: hstores in pl/python
Next
From: Dmitriy Igrishin
Date:
Subject: Re: hstores in pl/python