Re: Adding another cluster on same machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 4, 2020 at 10:10 AM Ron <ronljohnsonjr@xxxxxxxxx> 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.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux