... ostgreSQL prevents running Django with PgBouncer in transaction pooling mode. To reallow that, use the DISABLE_SERVER_SIDE_CURSORS setting in DATABASES . See トランザクションプールとサーバーサイドカーソル for more discussion. バグ修正 Made migrations re ... ... ixed incorrect index name truncation when using a namespaced db_table ( #28792 ). Made QuerySet.iterator() use server-side cursors on PostgreSQL after values() and values_list() ( #28817 ). Fixed crash on SQLite and MySQL when ordering by a filtered sub ... ... etting to let PostgreSQL users specify a template for creating the test database. QuerySet.iterator() now uses server-side cursors on PostgreSQL. This feature transfers some of the worker memory load (used to hold query results) to the database and migh ... name keyword argument is added to the DatabaseWrapper.create_cursor(self, name=None) method to allow usage of server-side cursors on backends that support it. Dropped support for PostgreSQL 9.2 and PostGIS 2.0 Upstream support for PostgreSQL 9.2 ends i ... で説明しているように、 clear_delayed_apps_cache() メソッドを使ってモデル状態をレンダリングする必要があります。 Server-side cursors on PostgreSQL The change to make QuerySet.iterator() use server-side cursors on PostgreSQL prevents running Django with Pg ... ... ser and server time zone are different, to clarify how the value inserted in the field will be interpreted. Using database cursors as context managers Prior to Python 2.7, database cursors could be used as a context manager. The specific backend's curso ... r defined the behavior of the context manager. The behavior of magic method lookups was changed with Python 2.7 and cursors were no longer usable as context managers. Django 1.7 allows a cursor to be used as a context manager. That is, the follow ... ... ーバーサイドカーソルは、それが作成された接続でのみアクセス可能だからです。 一つの解決策は、 DATABASES で DISABLE_SERVER_SIDE_CURSORS を True に設定して、接続のサーバーサイドカーソルを無効にすることです。 トランザクションプーリングモードでサーバーサイドカー ... ... tched by the Python database client when streaming results from the database. For databases that don't support server-side cursors, it controls the number of results Django fetches from the database adapter. QuerySet.earliest() , QuerySet.latest() , and ... ... _UPLOAD_MAX_NUMBER_FILES setting DATABASE-ATOMIC_REQUESTS setting DATABASE-AUTOCOMMIT setting DATABASE-DISABLE_SERVER_SIDE_CURSORS setting DATABASE-ENGINE setting DATABASE-TEST setting DATABASE-TIME_ZONE setting DATABASE_ROUTERS setting DatabaseError DA ... ... ースドライバとデータベース間の往復回数を減らすことができます。 PostgreSQLでは、サーバーサイドカーソルは DISABLE_SERVER_SIDE_CURSORS 設定が False の場合のみ使用されます。トランザクションプーリングモードで構成された接続プーラを使用している場合は トランザク ... ... ョンを設定する代わりに、 AT TIME ZONE を使用して明示的にローカルタイムに変換することを検討してください。 DISABLE_SERVER_SIDE_CURSORS デフォルト値: False もし QuerySet.iterator() でサーバーサイドのカーソルの使用を無効にしたい場合は、これを True に設定してく ... 2026年10月08日