question about postgres storage management

Поиск
Список
Период
Сортировка
От Will Childs-Klein
Тема question about postgres storage management
Дата
Msg-id CAN=vNfHDoiUUgH7ZjRJoL6B89VR6Qh0K5hDCeWFfwhCbZNrMxg@mail.gmail.com
обсуждение исходный текст
Ответы Re: question about postgres storage management  (Stephen Frost <sfrost@snowman.net>)
Re: question about postgres storage management  (Merlin Moncure <mmoncure@gmail.com>)
Re: question about postgres storage management  (Christopher Browne <cbbrowne@gmail.com>)
Список pgsql-hackers
Hello All,
I'm writing today to inquire about finding the exact point in the source where postgres writes to disk. I'm trying to implement some compression in postgres. The idea is to compress the data right when its written to disk, to reduce the amount of data written to disk, reducing the amount of time of disk read/write. I'm hoping that this reduction in disk IO latency is greater than the CPU cost incurred by compression, resulting in a speedup. I will be testing various compression libraries to see which (if any) work well for various query types. I've been looking through the source code, in src/backend/storage specifically. I'm thinking something in smgr is where i want to make my de/compress calls. Specifically in src/backend/storage/smgr/md.c in the functions mdwrite(...) and mdread(...). Am I in the right place? If not where should I look?

Sincerely,
Will Childs-Klein

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] currval and DISCARD ALL
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: question about postgres storage management