copy_file_range is now a Linux kernel call

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: copy_file_range is now a Linux kernel call
Date: 2018-01-03 03:44:04
Message-ID: 31122.1514951044@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Buildfarm member caiman just came back online after some time AWOL, and
it's not happy. The problem evidently is that pg_rewind's copy_file_range
function conflicts with a recently added Linux system call:

http://man7.org/linux/man-pages/man2/copy_file_range.2.html

Looks like we'd better rename our function. Anybody have an idea
more creative than "pg_copy_file_range"?

(At some point somebody might want to think about fixing this function
so it can make use of the kernel call when available. But that's more
work than I care to do right now, and certainly more change than I'd want
to back-patch.)

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-01-03 03:51:03 Re: copy_file_range is now a Linux kernel call
Previous Message Peter Geoghegan 2018-01-03 03:41:35 Re: [HACKERS] Parallel tuplesort (for parallel B-Tree index creation)