| От | Antonin Houska |
|---|---|
| Тема | pg_class(relpersistence) of hash index |
| Дата | |
| Msg-id | 16590.1416837919@localhost обсуждение |
| Ответы |
Re: pg_class(relpersistence) of hash index
|
| Список | pgsql-hackers |
While checking how BM_PERMANENT flag is set (in buffer header), I noticed that hash index has it set too. Shouldn't pg_class(relpersistence) be 'u' in this case? Currently it's set to 'p': postgres=# CREATE TABLE a(i int); CREATE TABLE postgres=# CREATE INDEX ON a USING HASH (i); WARNING: hash indexes are not WAL-logged and their use is discouraged CREATE INDEX postgres=# \d a Table "public.a"Column | Type | Modifiers --------+---------+-----------i | integer | Indexes: "a_i_idx" hash (i) postgres=# select relpersistence from pg_class where relname='a_i_idx';relpersistence ----------------p (1 row) -- Antonin Houska Cybertec Schönig & Schönig GmbH Gröhrmühlgasse 26 A-2700 Wiener Neustadt Web: http://www.postgresql-support.de, http://www.cybertec.at
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера