Use pg_temp in PostgreSQL's getCreateTempIDTableSQL

Use pg_temp schema to avoid (internal) race condition when creating (temporary) PostgreSQL function for creating temporary ID tables.