Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imposm-psqldb fails at createlang when plpgsql already exists #41

Open
kc2zgu opened this issue Aug 28, 2014 · 0 comments
Open

imposm-psqldb fails at createlang when plpgsql already exists #41

kc2zgu opened this issue Aug 28, 2014 · 0 comments

Comments

@kc2zgu
Copy link

kc2zgu commented Aug 28, 2014

Recent postgres versions seem to enable the plpgsql language automatically on creating a new database. This makes the createlang call in the script produced by imposm-psqldb fail since the language already exists, causing the entire script to exit because f set -e.

Something like 'createlang -l ${dbname} |grep plpgsql || createlang plpgsql ${dbname}' should work to check if plpgsql is already enabled (-l lists all currently installed languages) and skip the createlang if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant