pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Victor Tan <victortcs@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Streaming replication and partitions
Date: Thu, 16 May 2013 13:52:58 -0700
Message-ID: <5195472A.3050301@commandprompt.com> (raw)
In-Reply-To: <CANxEMJOuNMECD=Z2G0+WvQLMc41LPGUGM1vWz23wbR1Hg3GCyQ@mail.gmail.com>
References: <CANxEMJOuNMECD=Z2G0+WvQLMc41LPGUGM1vWz23wbR1Hg3GCyQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>


On 05/16/2013 01:36 PM, Victor Tan wrote:
> I am basically familiar with postgreSQL (in older incarnations) but have
> not really done a streaming replication (WAL) setup before.
>
> In planning for my setup, I am going to use table partitioning and
> tablespaces to keep things as quick as "possible".  However, in a
> streaming replication environment, will the slave and the master have to
> be _exactly_ the same in terms of tablespaces?  Is it possible some
> TBSPACE01 on the master be on /sda1 and the same TBSPACE01 on the slave
> be on /sdb1?

Yes, as long as sdb1 points to the same directory that sda1 on the other 
server points to.

>
> Will I have to set up identical hardware and identical drives and
> directory structure between the master and slave?
>

Only in the sense of the database directories, tablespaces are directory 
specific.

JD



> Thanks.
>
> - Victor Tan


-- 
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
High Availability, Oracle Conversion, Postgres-XC
@cmdpromptinc - 509-416-6579


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (2+ messages)

Message-ID: <5195472A.3050301@commandprompt.com>
Permalink:  ../5195472A.3050301@commandprompt.com/
Also on:    postgresql.org/message-id/5195472A.3050301@commandprompt.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: jd@commandprompt.com, victortcs@gmail.com
  Subject: Re: Streaming replication and partitions
  In-Reply-To: <5195472A.3050301@commandprompt.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