S
S
Sergey Beloventsev2018-02-03 10:35:44
PostgreSQL
Sergey Beloventsev, 2018-02-03 10:35:44

Why put on ltree?

actually here

[email protected]:~$ psql -d viber -1 -f SHAREDIR/contrib/ltree.sql
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ru_RU.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
SHAREDIR/contrib/ltree.sql: No such file or directory

localization en_US actually here
Name         |  Owner    | Encoding |   Collate            |    Ctype          |   Access privileges   
--------------+------------+-------------+---------------------+------------------+-----------------------
 viber          | admin     | UTF8       | en_US.UTF-8      | en_US.UTF-8 |

tell me how to install

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2018-02-03
@Sergalas

You are doing something strange. What version of postgresql do you have?
If 9.1 and higher - then the only correct way to put the extension is to say create extension in the desired database. Usually you need the privileges of the superuser of the database (usually postgres on linux or pgsql on freebsd)
Scolding the locale is a configuration error of the OS itself, it has nothing to do with the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question