pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: Joseph Kregloh <jkregloh@sproutloud.com>
To: Gerdan Rezende dos Santos <gerdan@gmail.com>
Cc: Martín Marqués <martin@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Re: error on online backup using pg_basebackup tool
Date: Sat, 5 Sep 2015 08:32:10 -0400
Message-ID: <55EAE0CA.5040103@pgmasters.net> (raw)
In-Reply-To: <CAAW2xfeswyZ31ym_6bxXnSNxoCkBbqOMcG2Kiu_x4bpafygnCQ@mail.gmail.com>
References: <CAKOcMA5ddDzh5AtLa+YHp91tmMbGHJLtLK4RU3R-sPN9KeYJrA@mail.gmail.com>
	<CAB7nPqQ1fKbK_VGFoNscuuZpR=7cSLxAf2gpBQPZ_swv0tMCfA@mail.gmail.com>
	<CAKOcMA6=jwEYRcMNh2Lcnzv-0g96Vf=uc2KOKs8-H6wnMpKWjw@mail.gmail.com>
	<CAB7nPqQJwpLB8WBv7UPUoS7Rkg-jwn8Zi+U+_5YrMnQJU880Qg@mail.gmail.com>
	<CAKOcMA44aiOk4-V9UmPs=fEksWj49UPhLWrHuA5ojXTqmYhiVg@mail.gmail.com>
	<55E81F00.7050907@2ndquadrant.com>
	<CAKOcMA5=-NQDrSOHpcW4p8nvuaHfqJBPDU=4fDt9mDFVAit1ZA@mail.gmail.com>
	<CAPdiE1xjYG0p5bgtLwa5FenbRtDpb6bAdCW2F3s=NpV0Uo5e2w@mail.gmail.com>
	<CAKOcMA6-QoajZNG23yLgLX3Tov8CNUcx7rkwu_0E17JodcCJ_w@mail.gmail.com>
	<CAAW2xfeswyZ31ym_6bxXnSNxoCkBbqOMcG2Kiu_x4bpafygnCQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 9/3/15 5:07 PM, Joseph Kregloh wrote:
> You can always move the folder out of there. Depending on the version of
> PostgreSQL different steps need to be take. If I remember correctly for
> version 9.3 you can move the symlink to point to the new directory. Pre
> 9.3 you need to move the symlink and the pointer inside the pg tables.

You can move the directory and modify the symlink on 9.2 or later
without any additional complications.

However - and this is very important - PostgreSQL must be shut down
during this operation.

My recommendation would be to move both tablespaces out of $PGDATA.
There has been a lot of discussion about disallowing it in future
releases as it causes problems for various tools.

-- 
-David
david@pgmasters.net

Attachments:

  signature.asc (application/pgp-signature, 841B) download

view thread (15+ messages)

Message-ID: <55EAE0CA.5040103@pgmasters.net>
Permalink:  ../55EAE0CA.5040103@pgmasters.net/
Also on:    postgresql.org/message-id/55EAE0CA.5040103@pgmasters.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: david@pgmasters.net, jkregloh@sproutloud.com, gerdan@gmail.com, martin@2ndquadrant.com, michael.paquier@gmail.com, pgsql-general@postgresql.org
  Subject: Re: error on online backup using pg_basebackup tool
  In-Reply-To: <55EAE0CA.5040103@pgmasters.net>
  References: <CAKOcMA5ddDzh5AtLa+YHp91tmMbGHJLtLK4RU3R-sPN9KeYJrA@mail.gmail.com> <CAB7nPqQ1fKbK_VGFoNscuuZpR=7cSLxAf2gpBQPZ_swv0tMCfA@mail.gmail.com> <CAKOcMA6=jwEYRcMNh2Lcnzv-0g96Vf=uc2KOKs8-H6wnMpKWjw@mail.gmail.com> <CAB7nPqQJwpLB8WBv7UPUoS7Rkg-jwn8Zi+U+_5YrMnQJU880Qg@mail.gmail.com> <CAKOcMA44aiOk4-V9UmPs=fEksWj49UPhLWrHuA5ojXTqmYhiVg@mail.gmail.com> <55E81F00.7050907@2ndquadrant.com> <CAKOcMA5=-NQDrSOHpcW4p8nvuaHfqJBPDU=4fDt9mDFVAit1ZA@mail.gmail.com> <CAPdiE1xjYG0p5bgtLwa5FenbRtDpb6bAdCW2F3s=NpV0Uo5e2w@mail.gmail.com> <CAKOcMA6-QoajZNG23yLgLX3Tov8CNUcx7rkwu_0E17JodcCJ_w@mail.gmail.com> <CAAW2xfeswyZ31ym_6bxXnSNxoCkBbqOMcG2Kiu_x4bpafygnCQ@mail.gmail.com> <55EAE0CA.5040103@pgmasters.net>

* 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