<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/django/db/backends/postgresql, branch devmain</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/chango.git/atom?h=devmain</id>
<link rel='self' href='http://cgit.adnoto.dev/chango.git/atom?h=devmain'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/'/>
<updated>2026-06-03T20:57:18Z</updated>
<entry>
<title>Fixed #36492 -- Restored exact boolean lookup against literals on SQLite.</title>
<updated>2026-06-03T20:57:18Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2025-07-06T01:19:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=4bbc27c8686f10f9556cef02dbfa9f5157fbcf56'/>
<id>urn:sha1:4bbc27c8686f10f9556cef02dbfa9f5157fbcf56</id>
<content type='text'>
Performance regression in 37e6c5b on SQLite. Just like MySQL, and presumably
Oracle, which don't have a native boolean type and incidently store booleans in
integer columns, indices on such columns cannot be used when explicit boolean
literal equalities are omitted.

Adapt the logic introduced by refs #32691 for MySQL to be used for all backends
that don't support native boolean fields instead of special casing MySQL,
SQLite, and Oracle in their own special way.

Note that review of this work surfaced that SQLite's query planner also cannot
make use of indices when dealing with expressions of form

   WHERE NOT (indexed_bool_field = false)

but that's a long standing problem unrelated to the restorative work performed
in this patch.

Thanks Klaas van Schelven for the report.
</content>
</entry>
<entry>
<title>Fixed #37075 -- Allowed overriding the PostgreSQL pool's "check" callable.</title>
<updated>2026-04-30T23:52:11Z</updated>
<author>
<name>Raoni Timo</name>
<email>raoni@relume.io</email>
</author>
<published>2026-04-30T13:57:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=9f790ef1a0f356cf6342b5d57bbaeac35aed0d9f'/>
<id>urn:sha1:9f790ef1a0f356cf6342b5d57bbaeac35aed0d9f</id>
<content type='text'>
Setting "check" in OPTIONS["pool"] previously raised TypeError because the
PostgreSQL backend always passed check= to ConnectionPool() and unpacked
**pool_options on top, regardless of CONN_HEALTH_CHECKS. The user's callable
now takes precedence via setdefault(); pool_options is copied first to avoid
mutating the user's settings dict.
</content>
</entry>
<entry>
<title>Fixed #36960 -- Enabled the use of psycopg 3's optimized timestamp loader.</title>
<updated>2026-03-20T20:31:25Z</updated>
<author>
<name>Aarni Koskela</name>
<email>akx@iki.fi</email>
</author>
<published>2026-03-14T23:04:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=994fa7780d73f6d618dc3a03339e96b5353b4e71'/>
<id>urn:sha1:994fa7780d73f6d618dc3a03339e96b5353b4e71</id>
<content type='text'>
Based on Daniele Varrazzo's comment in https://github.com/psycopg/psycopg/issues/1273#issuecomment-3986829769
</content>
</entry>
<entry>
<title>Refs #36795 -- Removed unnecessary prohibits_dollar_signs_in_column_aliases feature flag.</title>
<updated>2026-03-19T16:24:17Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2026-02-01T22:02:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=5146449a38222dc74f8f1ba88a7a7ef681e93101'/>
<id>urn:sha1:5146449a38222dc74f8f1ba88a7a7ef681e93101</id>
<content type='text'>
Now that user provided aliases are systematically quoted there is no need to
disallow the usage of the dollar sign on Postgres.
</content>
</entry>
<entry>
<title>Fixed #36727 -- Deprecated Field.get_placeholder in favor of get_placeholder_sql.</title>
<updated>2026-03-13T00:01:02Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2025-11-22T18:32:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=1a8fd5cf75bf855852f6bc2f75c3da9f7b145669'/>
<id>urn:sha1:1a8fd5cf75bf855852f6bc2f75c3da9f7b145669</id>
<content type='text'>
The lack of ability of the get_placeholder call chain to return SQL and
parameters separated so they can be mogrified by the backend at execution time
forced implementations to dangerously interpolate potentially user controlled
values.

The get_placeholder_sql name was chosen due to its proximity to the previous
method, but other options such as Field.as_sql were considered but ultimately
rejected due to its different input signature compared to Expression.as_sql
that might have lead to confusion.

There is a lot of overlap between what Field.get_db_prep_value and
get_placeholder_sql do but folding the latter in the former would require
changing its return signature to return expression which is a way more invasive
change than what is proposed here.

Given we always call get_db_prep_value it might still be an avenue worth
exploring in the future to offer a publicly documented interface to allow field
to take an active part in the compilation chain.

Thanks Jacob for the review.
</content>
</entry>
<entry>
<title>Applied Black's 2026 stable style.</title>
<updated>2026-01-18T20:26:56Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2026-01-18T20:26:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=6cff02078799b7c683a0d39630d49ab4fe532e7c'/>
<id>urn:sha1:6cff02078799b7c683a0d39630d49ab4fe532e7c</id>
<content type='text'>
https://github.com/psf/black/releases/tag/26.1.0</content>
</entry>
<entry>
<title>Fixed #36822 -- Added parameter limit for PostgreSQL with server-side binding.</title>
<updated>2026-01-16T14:15:53Z</updated>
<author>
<name>JaeHyuck Sa</name>
<email>wogur981208@gmail.com</email>
</author>
<published>2026-01-15T13:12:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=211b63142786ea77953de4f2850961e259c5b335'/>
<id>urn:sha1:211b63142786ea77953de4f2850961e259c5b335</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33647 -- Fixed silent data truncation in bulk_create on Postgres.</title>
<updated>2025-12-31T15:41:55Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2025-12-23T06:25:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=d6ae2ed868e43671afc4d433c3d8f4d27f7eb555'/>
<id>urn:sha1:d6ae2ed868e43671afc4d433c3d8f4d27f7eb555</id>
<content type='text'>
Regression in a16eedcf9c69d8a11d94cac1811018c5b996d491.

The UNNEST strategy is affected by the same problem bulk_update has wrt/
to silent data truncation due to its usage of db_type which always returns
a parametrized subtype.
</content>
</entry>
<entry>
<title>Fixed #36112 -- Added fallback in last_executed_query() on Oracle and PostgreSQL.</title>
<updated>2025-12-26T20:59:10Z</updated>
<author>
<name>VIZZARD-X</name>
<email>vigneshanandmay13@gmail.com</email>
</author>
<published>2025-11-22T10:27:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=da19b3897dc7c2e99b120d40322b36b4f1a09fe8'/>
<id>urn:sha1:da19b3897dc7c2e99b120d40322b36b4f1a09fe8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #36735 -- Supported shift parameter for UUID7 on PostgreSQL.</title>
<updated>2025-12-12T16:50:36Z</updated>
<author>
<name>Lily Acorn</name>
<email>code@lilyf.org</email>
</author>
<published>2025-11-20T20:10:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=e95468ed97b1c250939da316218c39dad577ba32'/>
<id>urn:sha1:e95468ed97b1c250939da316218c39dad577ba32</id>
<content type='text'>
</content>
</entry>
</feed>
