Add a function to create a utf8 database template in postgres
For Alaveteli's install script initially, probably useful in others.
This isn't needed by alaveteli any more, so I'll leave it open to merge if you'd like it, but it's not essential. I also couldn't make it work in alaveteli's site-specific-install.sh as I expected, so there might be some kind non-obvious of bug that I can't see.
@stevenday I'll have a go at using this in the alaveteli install script today* and report back.
* might forget – nudge me if I haven't commented here by Friday morning.
I had the same issue. If I paste the function definition directly above where its called it works fine, so I don't think the problem is with what you've written.
Really don't know what's wrong with this. I've tried moving it to different positions in the file, reducing the function body to a simple echo statement, and defining a new simple function (which also can't be found).
FWIW, I just added a call to create_postgres_template_utf8 to site-specific.sh and it ran okay (to there at least, then I quit out).