handle pgdata template for x86_64 and ARM