9

I am trying to get musicbrainz database on my MacOS 10.12 from https://bitbucket.org/lalinsky/mbslave/overview

I have 10.5 version of postgres.

In the link, third step needs a command which says "createlang plpgsql musicbrainz"

I get "createlang: command not found" error for that.

Can someone help me with this? I am completely new to postgres.

1
  • Iam using postgres but in window but maybe the first thing always error in execute command using postgres is path.. Commented Aug 31, 2018 at 3:26

2 Answers 2

16

Quote from the release notes

Remove createlang and droplang command-line applications (Peter Eisentraut)

These had been deprecated since PostgreSQL 9.1. Instead, use CREATE EXTENSION and DROP EXTENSION directly.

Additionally there is no reason to use createlang plpgsql (or create lang plpgsql) at all anymore.

Since Postgres 9.0 PL/pgSQL is automatically available in any newly created database.

So just skip that line.

Sign up to request clarification or add additional context in comments.

Comments

1

You should check if createlang is installed:

ls $(dirname $(which psql))

The listing should include createlang.

If it isn't installed you might execute equivalent commands in psql. Something similar to this:

> psql musicbrainz
psql (10.5)
Type "help" for help.

musicbrainz# CREATE LANG plpgsql;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.