django/tests/postgres_tests
Simon Charette ad6bca92a8 [5.2.x] Fixed #36107 -- Adjusted UNNEST bulk_create strategy to opt-out sized arrays.
The array fields opt-out heuristic failed to account for sized arrays.

Note that we keep relying on db_type as opposed to performing an ArrayField
instance check against the column's field as there could be other
implementations of model fields that use Postgres arrays to store the
optimization must be disabled for all of them.

Refs #35936.

Thanks Claude Paroz for the report and test.

Backport of 22fc151bb8 from main.
2025-01-20 14:16:51 +01:00
..
array_default_migrations Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
array_index_migrations Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
migrations [5.2.x] Fixed #36107 -- Adjusted UNNEST bulk_create strategy to opt-out sized arrays. 2025-01-20 14:16:51 +01:00
__init__.py Fixed #29084 -- Skipped some postgres_tests.test_search tests when pg_catalog isn't English. 2022-12-06 08:26:43 +01:00
fields.py Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
integration_settings.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
models.py [5.2.x] Fixed #36107 -- Adjusted UNNEST bulk_create strategy to opt-out sized arrays. 2025-01-20 14:16:51 +01:00
test_aggregates.py Refs #35444 -- Deprecated contrib.postgres aggregates ordering for order_by. 2025-01-06 09:39:21 +01:00
test_apps.py Fixed #34849 -- Avoided raising RuntimeWarning about import-time queries when apps are reinitialized with test tools. 2023-09-25 08:17:03 +02:00
test_array.py [5.2.x] Fixed #36107 -- Adjusted UNNEST bulk_create strategy to opt-out sized arrays. 2025-01-20 14:16:51 +01:00
test_bulk_update.py Refs #33308 -- Moved psycopg2 imports to the psycopg_any module. 2022-12-12 08:36:17 +01:00
test_constraints.py Fixed #35575 -- Added support for constraint validation on GeneratedFields. 2024-08-12 13:45:57 +02:00
test_functions.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_hstore.py Fixed #35944 -- Handled serialization of Unicode values in ArrayField and HStoreField. 2024-12-05 15:31:50 +01:00
test_indexes.py Fixed #35479 -- Dropped support for PostgreSQL 13 and PostGIS 3.0. 2024-05-27 09:49:25 +02:00
test_integration.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_introspection.py Refs #33308 -- Ensured type handlers are registered for all PostgreSQL specific tests. 2022-12-01 09:39:46 +01:00
test_operations.py Fixed #35717 -- Reduced Create/RemoveCollation operations when optimizing migrations. 2024-10-10 13:18:46 +02:00
test_ranges.py Refs #33308 -- Moved psycopg2 imports to the psycopg_any module. 2022-12-12 08:36:17 +01:00
test_search.py Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
test_signals.py Fixed typo in tests/postgres_tests/test_signals.py comment. 2022-12-06 12:52:56 +01:00
test_trigram.py Fixed #35732 -- Wrapped ConcatPair expression in parentheses to ensure operator precedence. 2024-09-11 14:36:56 +02:00
test_unaccent.py Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00