Изменения документа PostgreSQL. Индексы

Редактировал(а) Alexandr Fokin 2025/04/09 11:58

<
От версии < 1.14
отредактировано Alexandr Fokin
на 2025/04/09 11:58
К версии < 1.2 >
отредактировано Alexandr Fokin
на 2024/04/20 22:21
Изменить комментарий: К данной версии нет комментариев

Комментарий

Подробности

Свойства страницы
Содержимое
... ... @@ -1,58 +1,11 @@
1 -|(% style="width:83px" %) |(% style="width:1397px" %)11.2. Index Types
1 +| |11.2. Index Types #
2 2  [[https:~~/~~/www.postgresql.org/docs/current/indexes-types.html>>https://www.postgresql.org/docs/current/indexes-types.html]]
3 -[[https:~~/~~/postgrespro.ru/docs/postgresql/15/indexes-types>>https://postgrespro.ru/docs/postgresql/15/indexes-types]]
4 -|(% style="width:83px" %) |(% style="width:1397px" %)[[Индексы>>doc:Разработка.Базы данных.Механизмы.Индексы.WebHome]]
5 -|(% style="width:83px" %) |(% style="width:1397px" %)(((
6 -|(% style="width:105px" %)BTree|(% style="width:509px" %) |(% style="width:866px" %)
7 -|(% style="width:105px" %)Hash|(% style="width:509px" %) |(% style="width:866px" %)
8 -|(% style="width:105px" %)GIN|(% style="width:509px" %)Generalized Inverted index|(% style="width:866px" %)Difference between GiST and GIN index
9 -[[https:~~/~~/stackoverflow.com/questions/28975517/difference-between-gist-and-gin-index/28976555#28976555>>https://stackoverflow.com/questions/28975517/difference-between-gist-and-gin-index/28976555#28976555]]
10 -|(% style="width:105px" %)Gist|(% style="width:509px" %) |(% style="width:866px" %)
3 +| |[[Индексы>>doc:Разработка.Базы данных.Механизмы.Индексы.WebHome]]
4 +| |(((
5 +|B-Tree|
6 +|GIN|
7 +|Gist|
11 11  )))
12 -|(% style="width:83px" %)Индекс и MVCC|(% style="width:1397px" %)(((
13 -|Индекс не содержит информации о версии строки таблицы, поэтому чтобы проверить видимость версии строки в текущей транзакции необходимо обращение к таблице.
14 -|Индексы отчищаются при срабатывании [[Vacuum>>doc:Разработка.Базы данных.SQL.PostgreSQL.Механизмы.Vacuum.WebHome]] (как и таблицы).
15 -|Задержка отчистки индекса может привозить к повышенной нагрузке в ситуации, когда строки в таблице удалены, но при чтении данных (уже удаленных в таблице) по индексу все равно делаем чтение из таблицы.
16 -|Для оптимизации этого взаимодействия использует техническая структура данных - карта видимости (Visibility Map). Index only scan.
17 -)))
18 -|(% style="width:83px" %) |(% style="width:1397px" %)(((
19 -|(% colspan="1" rowspan="3" style="width:187px" %)Postgres Professional|(% style="width:1253px" %)Индексы в PostgreSQL — 1
20 -[[https:~~/~~/habr.com/ru/company/postgrespro/blog/326096/>>url:https://habr.com/ru/company/postgrespro/blog/326096/]]
21 -|(% style="width:1253px" %)Индексы в PostgreSQL — 2
22 -[[https:~~/~~/habr.com/ru/company/postgrespro/blog/326106/>>url:https://habr.com/ru/company/postgrespro/blog/326106/]]
23 -|(% style="width:1253px" %)Индексы в PostgreSQL — 7
24 -[[https:~~/~~/habr.com/ru/companies/postgrespro/articles/340978/>>https://habr.com/ru/companies/postgrespro/articles/340978/]]
25 -|(% colspan="1" style="width:187px" %) |(% style="width:1253px" %)(((
26 -Индексы в PostgreSQL
27 -[[https:~~/~~/tproger.ru/articles/indeksy-v-postgresql/>>url:https://tproger.ru/articles/indeksy-v-postgresql/]]
9 +| |
28 28  
29 -Используем все возможности индексов в PostgreSQL
30 -[[https:~~/~~/habr.com/ru/company/vk/blog/453046/>>url:https://habr.com/ru/company/vk/blog/453046/]]
31 -)))
32 -|(% style="width:187px" %) |(% style="width:1253px" %)Неожиданная находка, которая освобождает 20 GB неиспользованного индексного пространства [Postgres]
33 -[[https:~~/~~/habr.com/ru/company/otus/blog/672102/>>url:https://habr.com/ru/company/otus/blog/672102/]]
34 -)))
35 -
36 -----
37 -
38 -==== Внутренние ссылки: ====
39 -
40 -====== Дочерние страницы: ======
41 -
42 -{{children/}}
43 -
44 -====== Обратные ссылки: ======
45 -
46 -{{velocity}}
47 -#set ($links = $doc.getBacklinks())
48 -#if ($links.size() > 0)
49 - #foreach ($docname in $links)
50 - #set ($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
51 - * [[$escapetool.xml($rdoc.fullName)]]
52 - #end
53 -#else
54 - No back links for this page!
55 -#end
56 -{{/velocity}}
57 -
58 -----
11 +