pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: move postgrest installation
Date: Thu, 2 Jul 2020 08:05:43 -0500
Message-ID: <6b259199-333a-3eb0-90f9-1c3c9364f60b@gmail.com> (raw)
In-Reply-To: <DBBPR08MB42515A427ABB44A70FBD8048BB6D0@DBBPR08MB4251.eurprd08.prod.outlook.com>
References: <DBBPR08MB42515A427ABB44A70FBD8048BB6D0@DBBPR08MB4251.eurprd08.prod.outlook.com>

PostgreSQL is a set of *programs* which get installed.  The databases are 
created and then populated with your data.

Are you really asking about how to move the databases?  If so, then (first 
shut down postgres, of course), copy the files in /var/lib/pgsql/data to 
/datos/postgres and then update postgresql.conf, and whatever startup file 
defines PGDATA.


On 7/2/20 6:40 AM, CRISTINA ASENJO CUELLAR wrote:
>
> Hello all,
>
> First of all, Thanks you to community, help me with another questions before.
>
> I have installed postgresql:10 on redhat 8 in this path 
> (/var/lib/pgsql/data) default installation path, mounted on /var.
>
> I need to change the location due to storage issues to another FS 
> (/datos/postgres), how i can do it?
>
> Or it’s more save to install again (creating a FS mount on 
> /var/lib/pgsql/data)
>
> I configured a replica with Wall streaming, How do this change of path 
>  affect the replica?
>

-- 
Angular momentum makes the world go 'round.

view thread (2+ messages)

Message-ID: <6b259199-333a-3eb0-90f9-1c3c9364f60b@gmail.com>
Permalink:  ../6b259199-333a-3eb0-90f9-1c3c9364f60b@gmail.com/
Also on:    postgresql.org/message-id/6b259199-333a-3eb0-90f9-1c3c9364f60b@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: move postgrest installation
  In-Reply-To: <6b259199-333a-3eb0-90f9-1c3c9364f60b@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox