Инструменты пользователя

Инструменты сайта


postgres:uuid

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
postgres:uuid [2021/11/10 15:40]
werwolf
postgres:uuid [2023/01/12 12:18] (текущий)
Строка 72: Строка 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>​
 +
 +
postgres/uuid.1636548011.txt.gz · Последние изменения: 2023/01/12 12:17 (внешнее изменение)