I implemented some of functions: https://github.com/coldmind/django/compare/postresql_aggregate_functions
Implementation of general-purpose functions is trivial; statistic-purpose functions are somewhat different. I want include to the first pull request general-purpose and statistic-purpose functions. The others (ordered- and hypotetical-set) are more complex and must go to other pull request. Early feedback will be appreciated (in fact, the main thing I want to know is am I going in the right direction or not.) понедельник, 9 февраля 2015 г., 2:01:25 UTC+2 пользователь Russell Keith-Magee написал: > > > Hi Andriy, > > If we're going down this path, I can't think of any reason we wouldn't > target ever available aggregate. It doesn't need to be all in one patch/PR > - in fact, I'd suggest that unless the implementations are particularly > intertwined, one patch per aggregate (or aggregate group - e.g., all the > bit_* aggregates) would be preferable. > > The only other thing I'd flag is that if any of these aggregates are > recent additions (e.g., added in Postgres 9), the failure mode for earlier > versions should be relatively clean. > > Yours, > Russ Magee %-) > > On Sun, Feb 8, 2015 at 9:27 AM, Andriy Sokolovskiy (coldmind) < > [email protected] <javascript:>> wrote: > >> OK, since ticket was market as accepted, should *all* aggregates >> functions from >> http://www.postgresql.org/docs/9.4/static/functions-aggregate.html be >> implemented ? I'm asking to prevent doing unnecessary work. >> >> воскресенье, 8 февраля 2015 г., 1:11:08 UTC+2 пользователь Andriy >> Sokolovskiy (coldmind) написал: >> >>> I opened a ticket for it. >>> https://code.djangoproject.com/ticket/24301 >>> >>> суббота, 7 февраля 2015 г., 18:51:34 UTC+2 пользователь Michael Manfre >>> написал: >>>> >>>> It's reasonable to support backend specific aggregate functions. The >>>> database backend API contains >>>> BaseDatabaseOperations.check_expression_support >>>> for this exact reason. Feel free to create the ticket. >>>> >>>> Regards, >>>> Michael Manfre >>>> >>>> On Sat, Feb 7, 2015 at 9:00 AM, Andriy Sokolovskiy (coldmind) < >>>> [email protected]> wrote: >>>> >>>>> So, since django has contrib.postgres, maybe it would be reasonable to >>>>> add postgres-specific aggregate functions to this module? >>>>> If it is good idea, I'm gonna create ticket and implement this. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Django developers (Contributions to Django itself)" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at http://groups.google.com/group/django-developers. >>>>> To view this discussion on the web visit https://groups.google.com/d/ >>>>> msgid/django-developers/2d3b2bd2-3bce-4e40-8383- >>>>> ef5ca328bc26%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/django-developers/2d3b2bd2-3bce-4e40-8383-ef5ca328bc26%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >> You received this message because you are subscribed to the Google Groups >> "Django developers (Contributions to Django itself)" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/django-developers. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-developers/38e08166-a475-4214-8055-e81eeb452c85%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-developers/38e08166-a475-4214-8055-e81eeb452c85%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/d7749f2f-a4cd-4ba3-8f38-8b25caa35474%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
