Do we need to copy+paste this file from src/port?

Anyway we could simply reference the relevant header file, and call into the function from cstore_fdw? (I could call this function from CitusDB core.)