On Thu, Oct 6, 2011 at 12:06 PM, Ronan Dunklau <rdunklau(at)gmail(dot)com> wrote:
> Sorry, I didn't see the bug report: last time I tried to access the bug
> tracker it was down.
> Don't be sorry, it did not take much time to implement, and I needed it
> right now.
> Generic array support is great !
Yes, it's neat, and it's the way all builtin array casters are
implemented. it's been buried in the C code since ever, it just had to
> I've been waiting for it since a while (hstore arrays, record arrays...)
> Is your devel branch available publicly ?
It is in the devel branch of my clone, at
<https://github.com/dvarrazzo/psycopg/>, see commits of Sep 22.
> I tried to look at the devel branch from
> git://luna.dndg.it/public/psycopg2.git, and did not find anything regarding
> Regarding new_type, does it automatically register an array type for every
> type, or does the developer have to manually register the type and array
> type ?
Registration has to be separate: for instance register_hstore() hast
something like that in its implementation:
HSTORE = _ext.new_type(oid, "HSTORE", cast)
HSTOREARRAY = _ext.new_array_type(array_oid, "HSTOREARRAY", HSTORE)
The hstore/composite casters think themselves to register the array
casters too; authors of new typecasters should do themselves in a
> Thanks for the good work !
In response to
psycopg by date
|Next:||From: Raoul Duke||Date: 2011-10-06 12:36:10|
|Subject: Re: psycopg and gevent with pgbouncer|
|Previous:||From: Ronan Dunklau||Date: 2011-10-06 11:06:08|
|Subject: Re: Hstore array implementation.|