Skip to content

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

Description

@kc2zgu

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions