<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/django/db/backends/postgresql/schema.py, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2025-10-18T13:03:50Z</updated>
<entry>
<title>Fixed #21961 -- Added support for database-level delete options for ForeignKey.</title>
<updated>2025-10-18T13:03:50Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2025-10-18T13:03:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=0c487aa3a7b2417481bf48c1e5355c855873e210'/>
<id>urn:sha1:0c487aa3a7b2417481bf48c1e5355c855873e210</id>
<content type='text'>
Thanks Simon Charette for pair programming.

Co-authored-by: Nick Stefan &lt;NickStefan12@gmail.com&gt;
Co-authored-by: Akash Kumar Sen &lt;71623442+Akash-Kumar-Sen@users.noreply.github.com&gt;
Co-authored-by: Simon Charette &lt;charette.s@gmail.com&gt;</content>
</entry>
<entry>
<title>Fixed #36165 -- Made PostgreSQL's SchemaEditor._delete_index_sql() respect the "sql" argument.</title>
<updated>2025-02-05T23:15:39Z</updated>
<author>
<name>Natalia</name>
<email>124304+nessita@users.noreply.github.com</email>
</author>
<published>2025-02-05T15:08:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=1f33f21fca60c3839bcfc756900fb78bcfd15cc3'/>
<id>urn:sha1:1f33f21fca60c3839bcfc756900fb78bcfd15cc3</id>
<content type='text'>
This is a follow up of bd366ca2aeffa869b7dbc0b0aa01caea75e6dc31.

Thank you Daniel Finch for the report.
</content>
</entry>
<entry>
<title>Fixed #35969 -- Disallowed specifying a USING clause for altered generated field.</title>
<updated>2024-12-17T10:27:25Z</updated>
<author>
<name>lufafajoshua</name>
<email>77637648+lufafajoshua@users.noreply.github.com</email>
</author>
<published>2024-12-09T12:37:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=27375ad50ea3306844aab8122de13e9b3e0d1189'/>
<id>urn:sha1:27375ad50ea3306844aab8122de13e9b3e0d1189</id>
<content type='text'>
PostgreSQL versions 16.5 and above no longer permit the use
of a USING clause when changing the type of a generated column.
</content>
</entry>
<entry>
<title>Fixed #35180 -- Recreated PostgreSQL _like indexes when changing between TextField and CharField field types.</title>
<updated>2024-10-31T05:37:14Z</updated>
<author>
<name>Ben Cail</name>
<email>bcail@crossway.org</email>
</author>
<published>2024-09-17T19:10:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=0eaaadd47fa00baabe12be3ed736aa016b6d327e'/>
<id>urn:sha1:0eaaadd47fa00baabe12be3ed736aa016b6d327e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reverted "Fixed #28646 -- Prevented duplicate index when unique is set to True on PostgreSQL."</title>
<updated>2024-08-01T07:25:33Z</updated>
<author>
<name>Sarah Boyce</name>
<email>42296566+sarahboyce@users.noreply.github.com</email>
</author>
<published>2024-08-01T07:21:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=3dac3271d286f2790780e89d31ddbb7197f8defa'/>
<id>urn:sha1:3dac3271d286f2790780e89d31ddbb7197f8defa</id>
<content type='text'>
This reverts commit 9cf9c796be8dd53bc3b11355ff39d65c81d7be6d due to a crash on Oracle
as it didn't allow multiple indexes on the same field.
</content>
</entry>
<entry>
<title>Fixed #28646 -- Prevented duplicate index when unique is set to True on PostgreSQL.</title>
<updated>2024-07-30T15:27:10Z</updated>
<author>
<name>Ben Cail</name>
<email>bcail@crossway.org</email>
</author>
<published>2024-02-01T21:08:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9cf9c796be8dd53bc3b11355ff39d65c81d7be6d'/>
<id>urn:sha1:9cf9c796be8dd53bc3b11355ff39d65c81d7be6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed unused _alter_column_collation_sql() in PostgreSQL DatabaseSchemaEditor.</title>
<updated>2024-03-25T07:50:26Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2024-03-25T07:50:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=ae10146793dca0e0594c7acdee20ca3810983f39'/>
<id>urn:sha1:ae10146793dca0e0594c7acdee20ca3810983f39</id>
<content type='text'>
Unused since ae0899be0d787fbfc5f5ab2b18c5a8219d822d2b.</content>
</entry>
<entry>
<title>Applied Black's 2024 stable style.</title>
<updated>2024-01-26T11:45:07Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2024-01-26T11:45:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=305757aec19c9d5111e4d76095ae0acd66163e4b'/>
<id>urn:sha1:305757aec19c9d5111e4d76095ae0acd66163e4b</id>
<content type='text'>
https://github.com/psf/black/releases/tag/24.1.0</content>
</entry>
<entry>
<title>Fixed #34932 -- Restored varchar_pattern_ops/text_pattern_ops index creation when deterministic collaction is set.</title>
<updated>2023-10-30T06:37:40Z</updated>
<author>
<name>Tom Carrick</name>
<email>tom@carrick.eu</email>
</author>
<published>2023-10-27T13:46:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=34b411762b50883d768d7b67e0a158ec39da8b09'/>
<id>urn:sha1:34b411762b50883d768d7b67e0a158ec39da8b09</id>
<content type='text'>
Regression in f3f9d03edf17ccfa17263c7efa0b1350d1ac9278 (4.2) and
8ed25d65ea7546fafd808086fa07e7e5bb5428fc (5.0).
</content>
</entry>
<entry>
<title>Fixed #34553 -- Fixed improper % escaping of literal in constraints.</title>
<updated>2023-05-10T15:25:57Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2023-05-10T02:34:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=ffff17d4b0117cce59f65c9f56fa164694eafd23'/>
<id>urn:sha1:ffff17d4b0117cce59f65c9f56fa164694eafd23</id>
<content type='text'>
Proper escaping of % in string literals used when defining constaints
was attempted (a8b3f96f6) by overriding quote_value of Postgres and
Oracle schema editor. The same approach was used when adding support for
constraints to the MySQL/MariaDB backend (1fc2c70).

Later on it was discovered that this approach was not appropriate and
that a preferable one was to pass params=None when executing the
constraint creation DDL to avoid any form of interpolation in the first
place (42e8cf47).

When the second patch was applied the corrective of the first were not
removed which caused % literals to be unnecessary doubled. This flew
under the radar because the existings test were crafted in a way that
consecutive %% didn't catch regressions.

This commit introduces an extra test for __exact lookups which
highlights more adequately % doubling problems but also adjust a
previous __endswith test to cover % doubling problems (%\% -&gt; %%\%%).

Thanks Thomas Kolar for the report.

Refs #32369, #30408, #30593.
</content>
</entry>
</feed>
