File for modifying the SQL query for create 'post'?

Modifying such a key table directly is probably risky, consider instead using the PostCustomField model, it exists for exactly this kind of purpose: to attach bespoke custom data to Posts, usually in a plugin.

If you have performance issues then maybe you can revisit, but this is a much simpler and safer solution.