commonlib icon indicating copy to clipboard operation
commonlib copied to clipboard

Add a function to create a utf8 database template in postgres

Open stevenday opened this issue 10 years ago • 5 comments

For Alaveteli's install script initially, probably useful in others.

stevenday avatar Aug 14 '15 10:08 stevenday

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 avatar Aug 14 '15 12:08 stevenday

@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.

garethrees avatar Aug 19 '15 08:08 garethrees

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.

garethrees avatar Aug 19 '15 17:08 garethrees

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).

garethrees avatar Aug 20 '15 08:08 garethrees

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).

dracos avatar Aug 20 '15 13:08 dracos