Re: Array with a lower bound>1, PostgreSQL 8.3.6
Karsten Hilbert <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 24, 2009 at 05:07:46PM +0100, Thomas Jacob wrote: > > Given arbitrary labels we don't speak about mapping > > PostgreSQL arrays to Python lists-of-lists anymore, I would > > therefore suggest mapping non-"natural" arrays to ordered > > (?) dicts-of-dicts with integer keys. > > That would probably be easiest and most memory efficient, but > I think it would also be bit awkward to have different to get different > types depending on the value of the column, and it would probably > break old code. > > Would it be possible to have a configurable type adaptor > (don't really what those are yet), so that people could choose > which behavior they want? Lists or dicts of dicts? Sure. Karsten -- GPG key ID E4071346 @ wwwkeys.pgp.net E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346