| From: | Gabriele Bartolini <gabriele(dot)bartolini(at)2ndQuadrant(dot)it> |
|---|---|
| To: | Steeve Lennmark <steevel(at)handeldsbanken(dot)se> |
| Cc: | Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: [PATCH] Relocation of tablespaces in pg_basebackup |
| Date: | 2014-01-10 11:25:52 |
| Message-ID: | 52CFD8C0.6000203@2ndQuadrant.it |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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 Italia
PostgreSQL Training, Services and Support
gabriele(dot)bartolini(at)2ndQuadrant(dot)it | www.2ndQuadrant.it
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Magnus Hagander | 2014-01-10 11:27:23 | Re: [PATCH] Relocation of tablespaces in pg_basebackup |
| Previous Message | Merlin Moncure | 2014-01-10 10:00:40 | Re: array_length(anyarray) |