Re: file cloning in pg_upgrade and CREATE DATABASE
| От | Peter Eisentraut |
|---|---|
| Тема | Re: file cloning in pg_upgrade and CREATE DATABASE |
| Дата | |
| Msg-id | 9380bebc-3c16-42f0-d0e1-da7c235f8a58@2ndquadrant.com обсуждение исходный текст |
| Ответ на | Re: file cloning in pg_upgrade and CREATE DATABASE (Michael Paquier <michael@paquier.xyz>) |
| Ответы |
Re: file cloning in pg_upgrade and CREATE DATABASE
|
| Список | pgsql-hackers |
On 3/21/18 22:38, Michael Paquier wrote: > At least on Linux it is possible to rely on sync_file_range which is > called via pg_flush_data, so it seems to me that we ought to roughly > keep the loop working on FLUSH_DISTANCE, and replace the calls of > read/write by copy_file_range. copyfile is only able to do a complete > file copy, so we would also lose this property as well on Linux. I have shown earlier in the thread that copy_file_range in one go is still better than doing it in pieces. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: