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

From Peter Eisentraut
Subject Re: hstores in pl/python
Date
Msg-id 1292328916.18176.4.camel@vanquo.pezone.net
Whole thread Raw
In response to hstores in pl/python  (Jan Urbański <wulczer@wulczer.org>)
Responses Re: hstores in pl/python  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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.



pgsql-hackers by date:

Previous
From: Florian Pflug
Date:
Subject: Re: CommitFest wrap-up
Next
From: Peter Eisentraut
Date:
Subject: Re: SQL/MED - core functionality