Use an execute string for newer syntax.

Put the create foreign table, et al into a string to execute so it
can still be parsed by older postgresql versions.