Re: Raw device on PostgreSQL
От | Tom Lane |
---|---|
Тема | Re: Raw device on PostgreSQL |
Дата | |
Msg-id | 12111.1588206939@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Raw device on PostgreSQL (Tomas Vondra <tomas.vondra@2ndquadrant.com>) |
Список | pgsql-hackers |
Tomas Vondra <tomas.vondra@2ndquadrant.com> writes: > Yeah, I think the question is what are the expected benefits of using > raw devices. It might be an interesting exercise / experiment, but my > understanding is that most of the benefits can be achieved by using file > systems but with direct I/O and async I/O, which would allow us to > continue reusing the existing filesystem code with much less disruption > to our code base. There's another very large problem with using raw devices: on pretty much every platform, you don't get to do that without running as root. It is not easy to express how hard a sell it would be to even consider allowing Postgres to run as root. Between the security issues, and the generally poor return-on-investment we'd get from reinventing our own filesystem and I/O scheduler, I just don't see this sort of thing ever going forward. Direct and/or async I/O seems a lot more plausible. regards, tom lane
В списке pgsql-hackers по дате отправления: