Re: Adding another cluster on same machine
От | David G. Johnston |
---|---|
Тема | Re: Adding another cluster on same machine |
Дата | |
Msg-id | CAKFQuwajc0uEXkGRBo2vuCxK9Dv9WR_qHZvbcye9tfKn8HOz5Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Adding another cluster on same machine (Ron <ronljohnsonjr@gmail.com>) |
Список | pgsql-admin |
On Fri, Dec 4, 2020 at 10:10 AM Ron <ronljohnsonjr@gmail.com> wrote:
The problem might be that you have to do the initdb after "systemctl start postgresql-10.service".
No. You definitely need to initialize the database cluster before you try starting it.
> -bash-4.2$ /usr/pgsql-10/bin/postgresql-10-setup initdb -D
> /var/lib/pgsql/10/data-log -p 5433
> systemctl: invalid option -- 'D'
> failed to find PGDATA setting in -D.service
This made-up command is the problem.
After some searching I found this:
The section titled: "MULTIPLE POSTMASTERS (For the same PostgreSQL version)"
Though, if you don't care about systemd just ignore all the RPM-specific stuff and follow the instructions in the PostgreSQL documentation. IOW, don't use "postgresql-10-setup".
David J.
В списке pgsql-admin по дате отправления: