Postgres Pro 1C: как попасть в базу и где живут конфиги?

Продукт: PostgreSQL 1C 10.5
Платформа: x86_64
Пакет: postgrespro-1c-10-server_10.5-1.bionic_amd64.deb

Установку делал по инструкции:

apt-get update -y
apt-get install -y wget gnupg2 || apt-get install -y gnupg
wget -O — repo.postgrespro.ru/keys/GPG-KEY-POSTGRESPRO | apt-key add —
echo deb repo.postgrespro.ru/1c-archive/pg1c-10.5/ubuntu bionic main > /etc/apt/sources.list.d/postgrespro-1c.list
apt-get update -y
apt-get install -y postgrespro-1c-10-server
/opt/pgpro/1c-10/bin/pg-setup initdb
service postgrespro-1c-10 start

После этого вижу, что СУБД запущена:

ps aux | grep postgres
postgres 8727 0.0 0.0 319128 26392? Ss окт16 0:00 /opt/pgpro/1c-10/bin/postgres -D /var/lib/pgpro/1c-10/data
postgres 8746 0.0 0.0 319244 6784? Ss окт16 0:00 postgres: checkpointer process
postgres 8747 0.0 0.0 319128 4008? Ss окт16 0:00 postgres: writer process
postgres 8748 0.0 0.0 319128 8860? Ss окт16 0:00 postgres: wal writer process
postgres 8750 0.0 0.0 319532 6856? Ss окт16 0:00 postgres: autovacuum launcher process
postgres 8752 0.0 0.0 173932 3336? Ss окт16 0:00 postgres: stats collector process
postgres 8753 0.0 0.0 319416 4820? Ss окт16 0:00 postgres: bgworker: logical replication launcher
root 36779 0.0 0.0 13136 1060 pts/1 S+ 08:59 0:00 grep --color=auto postgres

Пытаюсь попасть в базу через сокет:

#sudo -u postgres psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Видимо, подключение через сокет не настроено. А если через TCP?

# psql -h localhost -U postgres
Password for user postgres:
psql: ВАЖНО: пользователь «postgres» не прошёл проверку подлинности (по паролю)

Установил пароль пользователю postgres (созданному автоматически при установке СУБД) — по нему не пускает. Решил настроить pg_hba.conf так, чтобы пускало локально через сокет — не могу найти /etc/postgresql, /etc/pgpro. В /opt/pgpro/1c-10/share нашёл только прототипы конфигов типа

big.conf.sample
medium.conf.sample
pg_hba.conf.sample
pg_ident.conf.sample
pg_service.conf.sample
postgresql.conf.sample
psqlrc.sample
recovery.conf.sample
small.conf.sample

Что делать, товарищи — как попасть в базу и где найти конфиги?

Похожие публикации

Тут ничего нет

Нет комментариев