Re: [PATCH] Relocation of tablespaces in pg_basebackup - Mailing list pgsql-hackers

From Gabriele Bartolini
Subject Re: [PATCH] Relocation of tablespaces in pg_basebackup
Date
Msg-id 52CFD8C0.6000203@2ndQuadrant.it
Whole thread Raw
In response to Re: [PATCH] Relocation of tablespaces in pg_basebackup  (Steeve Lennmark <steevel@handeldsbanken.se>)
Responses Re: [PATCH] Relocation of tablespaces in pg_basebackup  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Hi Steeve,

Il 09/01/14 22:38, Steeve Lennmark ha scritto:
> I'm a barman user myself so that was actually my initial thought.

Ah! Very good!
> If there aren't some kind of hidden internal that I've missed I don't see
> a way to convert an OID (only have OID and path at this stage) to a
> tablespace name. This solution, even though not optimal, is a lot
> better than my initial one where I used the OID directly.

Try:

SELECT spcname, oid, pg_tablespace_location(oid) FROM pg_tablespace

Thanks,
Gabriele

-- Gabriele Bartolini - 2ndQuadrant ItaliaPostgreSQL Training, Services and Supportgabriele.bartolini@2ndQuadrant.it |
www.2ndQuadrant.it




pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: array_length(anyarray)
Next
From: Magnus Hagander
Date:
Subject: Re: [PATCH] Relocation of tablespaces in pg_basebackup