#32961: Add support for BIT_XOR aggregate in PostgreSQL 14+.
-------------------------------------+-------------------------------------
               Reporter:  Nick Pope  |          Owner:  Nick Pope
                   Type:  New        |         Status:  assigned
  feature                            |
              Component:             |        Version:  3.2
  contrib.postgres                   |       Keywords:  postgresql,
               Severity:  Normal     |  aggregate, bit_xor
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 PostgreSQL 14+ will support a `BIT_XOR` aggregate function. We already
 support `BIT_AND` and `BIT_OR` in `django.contrib.postgres`.

 See ​https://www.postgresql.org/docs/release/14.0/

 ----

 As an aside, it looks as though Oracle 21c supports these as
 `BIT_AND_AGG`, `BIT_OR_AGG`, and `BIT_XOR_AGG`.
 They're also supported in MySQL and MariaDB, but when there are no rows to
 aggregate they don't return `NULL`.
 It's relative straightforward to register custom aggregates for SQLite for
 these too.
 Perhaps there might be a case to migrate these to
 `django.db.models.aggregates` in the future...

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32961>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.5fe02e32482f70b126478a65ef83d1ac%40djangoproject.com.

Reply via email to