{"title":"PostgreSQL specific model indexes","version":"1.11","locale":"ja","docname":"ref/contrib/postgres/indexes","url":"/ja/1.11/ref/contrib/postgres/indexes/","canonical":"https://djangodocs.dev/ja/1.11/ref/contrib/postgres/indexes/","summary":"The following are PostgreSQL specific indexes available from the django.contrib.postgres.indexes module.","html":"<span id=\"postgresql-specific-model-indexes\"></span><h1>PostgreSQL specific model indexes<a class=\"heading-anchor\" href=\"#module-django.contrib.postgres.indexes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<aside class=\"version-note version-added\" data-version=\"1.11\" role=\"note\">\n<p class=\"version-note-title\">New in Django 1.11</p></aside>\n<p>The following are PostgreSQL specific <a class=\"reference internal\" href=\"/ja/1.11/ref/models/indexes/\"><span class=\"doc\">indexes</span></a>\navailable from the <code class=\"docutils literal notranslate\">django.contrib.postgres.indexes</code> module.</p>\n<section id=\"brinindex\">\n<h2><code class=\"docutils literal notranslate\">BrinIndex</code><a class=\"heading-anchor\" href=\"#brinindex\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<dl class=\"py class\">\n<dt class=\"sig sig-object py\" id=\"django.contrib.postgres.indexes.BrinIndex\">\n<em class=\"property\"><span class=\"k\">class</span> </em><span class=\"sig-name descname\">BrinIndex</span><span class=\"sig-paren\">(</span><em class=\"sig-param\">fields<span class=\"o\">=</span><span class=\"default_value\">[]</span></em>, <em class=\"sig-param\">name<span class=\"o\">=</span><span class=\"default_value\">None</span></em>, <em class=\"sig-param\">pages_per_range<span class=\"o\">=</span><span class=\"default_value\">None</span></em><span class=\"sig-paren\">)</span><a class=\"heading-anchor\" href=\"#django.contrib.postgres.indexes.BrinIndex\"><span class=\"visually-hidden\">Link to this definition</span><span aria-hidden=\"true\">#</span></a></dt>\n<dd><p>Creates a <a class=\"reference external\" href=\"https://www.postgresql.org/docs/current/static/brin-intro.html\">BRIN index</a>.</p>\n<p>The <code class=\"docutils literal notranslate\">pages_per_range</code> argument takes a positive integer.</p>\n</dd></dl>\n\n</section>\n<section id=\"ginindex\">\n<h2><code class=\"docutils literal notranslate\">GinIndex</code><a class=\"heading-anchor\" href=\"#ginindex\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<dl class=\"py class\">\n<dt class=\"sig sig-object py\" id=\"django.contrib.postgres.indexes.GinIndex\">\n<em class=\"property\"><span class=\"k\">class</span> </em><span class=\"sig-name descname\">GinIndex</span><a class=\"heading-anchor\" href=\"#django.contrib.postgres.indexes.GinIndex\"><span class=\"visually-hidden\">Link to this definition</span><span aria-hidden=\"true\">#</span></a></dt>\n<dd><p>Creates a <a class=\"reference external\" href=\"https://www.postgresql.org/docs/current/static/gin.html\">gin index</a>.</p>\n<p>To use this index on data types not in the <a class=\"reference external\" href=\"https://www.postgresql.org/docs/current/static/gin-builtin-opclasses.html\">built-in operator classes</a>,\nyou need to activate the <a class=\"reference external\" href=\"https://www.postgresql.org/docs/current/static/btree-gin.html\">btree_gin extension</a> on\nPostgreSQL. You can install it using the\n<a class=\"reference internal\" href=\"/ja/1.11/ref/contrib/postgres/operations/#django.contrib.postgres.operations.BtreeGinExtension\" title=\"django.contrib.postgres.operations.BtreeGinExtension\"><code class=\"xref py py-class docutils literal notranslate\">BtreeGinExtension</code></a> migration\noperation.</p>\n</dd></dl>\n\n</section>","rootId":"module-django.contrib.postgres.indexes","toc":[{"title":"BrinIndex","anchor":"brinindex","children":[]},{"title":"GinIndex","anchor":"ginindex","children":[]}],"breadcrumbs":[{"docname":"ref/index","title":"API Reference","url":"/ja/1.11/ref/"},{"docname":"ref/contrib/index","title":"contrib packages","url":"/ja/1.11/ref/contrib/"},{"docname":"ref/contrib/postgres/index","title":"django.contrib.postgres","url":"/ja/1.11/ref/contrib/postgres/"}],"prev":{"docname":"ref/contrib/postgres/functions","title":"PostgreSQL specific database functions","url":"/ja/1.11/ref/contrib/postgres/functions/"},"next":{"docname":"ref/contrib/postgres/lookups","title":"PostgreSQL specific lookups","url":"/ja/1.11/ref/contrib/postgres/lookups/"},"formats":{"html":"/ja/1.11/ref/contrib/postgres/indexes/","markdown":"/ja/1.11/ref/contrib/postgres/indexes.md","json":"/ja/1.11/ref/contrib/postgres/indexes.json"},"source":"https://github.com/django/django/blob/stable/1.11.x/docs/ref/contrib/postgres/indexes.txt","official":"https://docs.djangoproject.com/ja/1.11/ref/contrib/postgres/indexes/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11"],"inLocales":["en","fr","ja","id","pt-br","ko","es","el","pl"]}