Unions in postgres

Compile union for postgres (copied from MySqlGrammar.php).