From: | Ashwin Agrawal <aagrawal(at)pivotal(dot)io> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Avoiding Tablespace path collision for primary and standby |
Date: | 2018-05-29 17:40:04 |
Message-ID: | CALfoeisgWt0qunMgLcK=3BfL2ZH9g=-ZUXSfVdM8mTRXnP+Bhg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, May 26, 2018 at 7:08 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> writes:
> > I also wondered about this when trying to figure out how to write a
> > TAP test for recovery testing with tablespaces, for my undo proposal.
> > I was starting to wonder about either allowing relative paths or
> > supporting some kind of variable in the tablespace path that could
> > then be set differently in each cluster's .conf.
>
> Yeah, the configuration-variable solution had occurred to me too.
> I'm not sure how convenient it'd be in practice, but perhaps it
> would be workable.
>
Configuration variable becomes tricky to play with for this purpose,
specially given configuration files get copied by pg_basebackup.
Will the configuration-variable be set by some option to pg_basebackup, as
even during pg_basebackup will need to use the same configuration-variable.
(I know basebackup provides way to specify different path for existing
tablespaces but seems will need to still use same static string for ALL the
tablespaces path, given how the linking and directory creation happens
today)
Also, not sure how configuration-variable will be used to solve the
problem, like changing its value shouldn't block me from accessing the
previously created tablespaces and all.
Seems as the conflict happens naturally by design, if it can be resolved
someway automatically would be better than a config option based solution.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-05-29 18:00:20 | Re: "column i.indnkeyatts does not exist" in pg_upgrade from 11dev to 11b1 |
Previous Message | Andres Freund | 2018-05-29 17:10:26 | Re: Add CONTRIBUTING.md |