Within a PL/pgSQL function this would be easy, but I need to store the complete initialization script in a text file and execute it as a whole.
In your scritp, put a CREATE FUNCTION and then call it and drop it ;) ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings