Re: Test "tablespace" fails during `make installcheck` on master-replica setup - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Test "tablespace" fails during `make installcheck` on master-replica setup
Date
Msg-id 28347.1481123170@sss.pgh.pa.us
Whole thread Raw
In response to Re: Test "tablespace" fails during `make installcheck` on master-replica setup  (Stephen Frost <sfrost@snowman.net>)
Responses Re: Test "tablespace" fails during `make installcheck` on master-replica setup  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> It would be really nice if we would detect that some other postmaster is
> already using a given tablespace directory and to throw an error and
> complain rather than starting up thinking everything is fine.

In principle, we could have the postmaster run through $PGDATA/pg_tblspc
and drop a lockfile into each referenced directory.  But the devil is in
the details --- in particular, not sure how to get the right thing to
happen during a CREATE TABLESPACE.  Also, I kinda doubt that this is going
to fix anything for the replica-on-same-machine problem.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Moser
Date:
Subject: Re: [PROPOSAL] Temporal query processing with range types
Next
From: Erik Rijkers
Date:
Subject: Re: Declarative partitioning - another take