首先,我要提供一些有关我的环境的信息:
在/ 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连接的细节时,我有些困惑。填写什么PGBIN?
#!/bin/bash
#Provide your database details here -----
export PGBIN=path_to_psql
export PGHOST=localhost
export PGPORT=5433
export CITYDB=3dcitydb
export PGUSER=postgres
问候
瑜伽士