Postgresql Детали базы данных - PullRequest
0 голосов
/ 26 февраля 2020

Прежде всего, позвольте мне дать некоторую информацию о моем окружении:

  1. Сервер Ubuntu 16.04 LTS
  2. Postgresql 12 = Я установил его в / var / lib / postgresql / 12 / main

inside / var / lib / postgresql / 12 / main:

drwx------ 10 postgres postgres 4096 Feb 21 17:13 base
drwx------  2 postgres postgres 4096 Feb 26 19:29 global
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_commit_ts
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_dynshmem
drwx------  4 postgres postgres 4096 Feb 26 19:33 pg_logical
drwx------  4 postgres postgres 4096 Jan  9 16:54 pg_multixact
drwx------  2 postgres postgres 4096 Feb 26 19:28 pg_notify
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_replslot
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_serial
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_snapshots
drwx------  2 postgres postgres 4096 Feb 26 19:28 pg_stat
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_stat_tmp
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_subtrans
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_tblspc
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_twophase
-rw-------  1 postgres postgres    3 Jan  9 16:54 PG_VERSION
drwx------  3 postgres postgres 4096 Feb 17 19:07 pg_wal
drwx------  2 postgres postgres 4096 Jan  9 16:54 pg_xact
-rw-------  1 postgres postgres   88 Jan  9 16:54 postgresql.auto.conf
-rw-------  1 postgres postgres  130 Feb 26 19:28 postmaster.opts
-rw-------  1 postgres postgres  101 Feb 26 19:28 postmaster.pid

Я немного озадачен, когда хочу заполнить детали PostgreSQL соединение. Чем заполнить ПГБИН ??

#!/bin/bash
#Provide your database details here -----
export PGBIN=path_to_psql
export PGHOST=localhost
export PGPORT=5433
export CITYDB=3dcitydb
export PGUSER=postgres

С уважением,

Йог

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...