Re: PostgreSql Service different path - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: PostgreSql Service different path
Date
Msg-id 20221024120642.65rhyegpx2maea4g@hjp.at
Whole thread Raw
In response to PostgreSql Service different path  (chris navarroza <canavarroza.work@gmail.com>)
List pgsql-general
On 2022-10-24 15:51:30 +0800, chris navarroza wrote:
> sudo yum install postgresql14-server postgresql14-contrib
[...]
> /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 
[doesn't use /home/dmartuser/pgsql/14/data]
>
> How can I point the service to read the new path ( /home/dmartuser/pgsql/14/
> data )? 

Check the systemd configuration file for this service.

        hp


--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment

pgsql-general by date:

Previous
From: chris navarroza
Date:
Subject: Re: PostgreSql Service different path
Next
From: Vince McMahon
Date:
Subject: Re: Explain returns different number of rows