Re: postgresql range types v2

2013-01-24 Thread Anssi Kääriäinen
> Trying it would be really, really valuable. The current situation is > such that the main ORM lookups are converted, and there is one trivial > test lookup in examples. This doesn't tell at all how the lookup > system will work in real world usage. I went ahead and converted django-hstore [https

Re: postgresql range types v2

2013-01-18 Thread Anssi Kääriäinen
On 18 tammi, 17:35, Marco Paolini wrote: > > For examples of how to define lookups, see: > >https://github.com/akaariai/django/compare/ticket_16187_new#L13L72and > > the Lookup object itself > > athttps://github.com/akaariai/django/compare/ticket_16187_new#L6R50. > > Warning about the code - it w

Re: postgresql range types v2

2013-01-18 Thread Marco Paolini
On 18/01/2013 12:55, Anssi Kääriäinen wrote: On 18 tammi, 13:00, Florian Apolloner wrote: Hi, On Thursday, January 17, 2013 11:08:01 PM UTC+1, Russell Keith-Magee wrote: So - while I'm not sure there's a place for this in core (unless you can demonstrate how to implement range types on oth

Re: postgresql range types v2

2013-01-18 Thread Marco Paolini
On 17/01/2013 22:08, Russell Keith-Magee wrote: On Mon, Dec 31, 2012 at 5:56 PM, Marco Paolini mailto:markopaol...@gmail.com>> wrote: Hi all, sorry for the noise, forget my previous mail as it was pointing to the wrong commit, here's the good one: https://github.com/mpaolini

Re: postgresql range types v2

2013-01-18 Thread Anssi Kääriäinen
On 18 tammi, 13:00, Florian Apolloner wrote: > Hi, > > On Thursday, January 17, 2013 11:08:01 PM UTC+1, Russell Keith-Magee wrote: > > > So - while I'm not sure there's a place for this in core (unless you can > > demonstrate how to implement range types on other backends), it should be > > *pos

Re: postgresql range types v2

2013-01-18 Thread Tom Evans
On Thu, Jan 17, 2013 at 10:08 PM, Russell Keith-Magee wrote: > The other thing I'd suggest is to look at others doing similar work. For > example, Zachary Voase has been working on extensions to Django's PostgreSQL > backend to support a whole lot of extra PostgreSQL features[1]. From the > look o

Re: postgresql range types v2

2013-01-18 Thread Florian Apolloner
Hi, On Thursday, January 17, 2013 11:08:01 PM UTC+1, Russell Keith-Magee wrote: > > So - while I'm not sure there's a place for this in core (unless you can > demonstrate how to implement range types on other backends), it should be > *possible* to use this library as a third party extension. If

Re: postgresql range types v2

2013-01-17 Thread Russell Keith-Magee
On Mon, Dec 31, 2012 at 5:56 PM, Marco Paolini wrote: > Hi all, > > sorry for the noise, forget my previous mail as it was pointing to the > wrong commit, > here's the good one: > > https://github.com/mpaolini/**django/commit/** > b754abdeab204949510500ccb1b845**b7ad143542

Re: postgresql range types v2

2013-01-17 Thread Marco Paolini
On Thursday, January 17, 2013, Simon Litchfield wrote: > Also, did you see psycopg2.extras.DateTimeRange? > > No, I missed that one ! Thanks I 'll see if it can be used somehow, but since the range types have to be used by the core django code, I doubt they can be imported from a third party libr

Re: postgresql range types v2

2013-01-17 Thread Marco Paolini
On Thursday, January 17, 2013, Simon Litchfield wrote: > Marco, this is great. Thanks, did you give it a try? > > I wonder if it would be possible to add range fields without modifying > django? > Very difficult, there are many small changes scattered around the core django ORM and driver code

Re: postgresql range types v2

2013-01-16 Thread Simon Litchfield
Also, did you see psycopg2.extras.DateTimeRange? On Monday, December 31, 2012 8:56:12 PM UTC+11, mpaolini wrote: > > Hi all, > > sorry for the noise, forget my previous mail as it was pointing to the > wrong commit, > here's the good one: > > > https://github.com/mpaolini/django/commit/b754abd

Re: postgresql range types v2

2013-01-16 Thread Simon Litchfield
Marco, this is great. I wonder if it would be possible to add range fields without modifying django? On Monday, December 31, 2012 8:56:12 PM UTC+11, mpaolini wrote: > > Hi all, > > sorry for the noise, forget my previous mail as it was pointing to the > wrong commit, > here's the good one:

postgresql range types v2

2012-12-31 Thread Marco Paolini
Hi all, sorry for the noise, forget my previous mail as it was pointing to the wrong commit, here's the good one: https://github.com/mpaolini/django/commit/b754abdeab204949510500ccb1b845b7ad143542 copying here the rest of the original mail: postgresql since version 9.2 added support for range