PostgreSql Service different path

Поиск
Список
Период
Сортировка
От chris navarroza
Тема PostgreSql Service different path
Дата
Msg-id CADRdQ7qtqTGPbeKg2Seod0-s+54fa_QG8kBP3JBRpea0ueX5SA@mail.gmail.com
обсуждение исходный текст
Ответы Re: PostgreSql Service different path  (Jeffrey Walton <noloader@gmail.com>)
Re: PostgreSql Service different path  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Список pgsql-general
Hi,

I install postgresql14.5 with the following commands


sudo yum install postgresql14-server postgresql14-contrib


sudo su postgres

cd /tmp 

/usr/pgsql-14/bin/initdb -D /home/dmartuser/pgsql/14/data

and update the postgresql.conf to the new path, now when I start the service, it has an error and when I check it says 

-- Unit postgresql-14.service has begun starting up.
Oct 24 15:16:45 datamartds postgresql-14-check-db-dir[132338]: "/var/lib/pgsql/14/data/" is missing or empty.
Oct 24 15:16:45 datamartds postgresql-14-check-db-dir[132338]: Use "/usr/pgsql-14/bin/postgresql-14-setup initdb" to initialize the database cluster.
Oct 24 15:16:45 datamartds postgresql-14-check-db-dir[132338]: See /usr/share/doc/postgresql14/README.rpm-dist for more information.
Oct 24 15:16:45 datamartds systemd[1]: postgresql-14.service: Control process exited, code=exited status=1
Oct 24 15:16:45 datamartds systemd[1]: postgresql-14.service: Failed with result 'exit-code'.

How can I point the service to read the new path ( /home/dmartuser/pgsql/14/data )? 

Thanks,

Chris Albert Navarroza
Information Technology Officer I
CTCO - ITDS - RDMD

В списке pgsql-general по дате отправления:

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: synchronous streaming replication
Следующее
От: 黄宁
Дата:
Сообщение: GIN Index use statistic information?