|
|
|
Q: Партиционирование и хранение TOAST.
|
|||
|---|---|---|---|
|
#18+
Здравствуйте мудрецы! Версия 9.4. Я в PG нуб. Подкажите, TOAST хранилище которое создается для таблицы располагается в том же табличном пространстве, что и основная таблица? Если я запарционирую основную таблицу с целью выноса старых данных на медленные диски, TOAST за ним последует? Спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.06.2015, 16:22 |
|
||
|
Q: Партиционирование и хранение TOAST.
|
|||
|---|---|---|---|
|
#18+
скоро будет вроде ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.06.2015, 16:51 |
|
||
|
Q: Партиционирование и хранение TOAST.
|
|||
|---|---|---|---|
|
#18+
Понял, спасибо. А тогда разрешите такой вопрос. допустим у меня таблица Код: sql 1. 2. 3. 4. 5. 6. 7. 8. У меня две записи в TOAST хранилище будут или одна? если конечно они обе будут удовлетворять условиям их выделения из основной страницы и размещения там. Спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.06.2015, 18:36 |
|
||
|
Q: Партиционирование и хранение TOAST.
|
|||
|---|---|---|---|
|
#18+
http://www.postgresql.org/docs/current/interactive/storage-toast.html If any of the columns of a table are TOAST-able, the table will have an associated TOAST table, whose OID is stored in the table's pg_class.reltoastrelid entry. Out-of-line TOASTed values are kept in the TOAST table, ... Out-of-line values are divided (after compression if used) into chunks of at most TOAST_MAX_CHUNK_SIZE bytes (by default this value is chosen so that four chunk rows will fit on a page, making it about 2000 bytes). Each chunk is stored as a separate row in the TOAST table for the owning table. Every TOAST table has the columns chunk_id (an OID identifying the particular TOASTed value), chunk_seq (a sequence number for the chunk within its value), and chunk_data (the actual data of the chunk). A unique index on chunk_id and chunk_seq provides fast retrieval of the values. A pointer datum representing an out-of-line TOASTed value therefore needs to store the OID of the TOAST table in which to look and the OID of the specific value (its chunk_id). A pointer datum representing an out-of-line TOASTed value therefore needs to store the OID of the TOAST table in which to look and the OID of the specific value (its chunk_id). ну, и там далее видно, что будет две группы записей. два чанка. ссылка на конкретный свой чанк и будет лежать в исходном тупле в конкретной колонке. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.06.2015, 22:54 |
|
||
|
|

start [/forum/topic.php?fid=53&msg=38988470&tid=1997925]: |
0ms |
get settings: |
8ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
17ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
28ms |
get tp. blocked users: |
1ms |
| others: | 249ms |
| total: | 326ms |

| 0 / 0 |
