Здесь показаны различия между двумя версиями данной страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
postgres:uuid [2021/11/10 15:39] werwolf [Steps] |
postgres:uuid [2023/01/12 12:18] (текущий) |
||
|---|---|---|---|
| Строка 18: | Строка 18: | ||
| If it is installed you should see it listed like it is below | If it is installed you should see it listed like it is below | ||
| - | {{https://miro.medium.com/max/60/1*VtQNCDrIlyo7vYBCHj04_Q.png?q=20?700x209}}\\ | ||
| {{https://miro.medium.com/max/700/1*VtQNCDrIlyo7vYBCHj04_Q.png?700x209}}\\ | {{https://miro.medium.com/max/700/1*VtQNCDrIlyo7vYBCHj04_Q.png?700x209}}\\ | ||
| Строка 73: | Строка 72: | ||
| sudo -u postgres psql icx -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";' | sudo -u postgres psql icx -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";' | ||
| </code> | </code> | ||
| - | |||
| - | ==== I can’t connect to PostgreSQL¶ ==== | ||
| - | |||
| - | It is possible that PostgreSQL complains when you’re trying to connect. The solution is to modify the ''pg_hba.conf'' (in Debian, located in ''/etc/postgresql/X.X/main'') and add the following line at the end : | ||
| <code> | <code> | ||
| - | local all all trust | + | SELECT uuid_generate_v4() |
| </code> | </code> | ||
| + | |||
| + | |||