Re: does postgresql backup require additional space on disk

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Julie Nishimura <juliezain(at)hotmail(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: does postgresql backup require additional space on disk
Date: 2019-05-14 01:16:45
Message-ID: e3e2319a-e715-f272-f2f0-ef8737bf1f8c@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/13/19 5:56 PM, Julie Nishimura wrote:
> er_temp=# select * from pg_tables where tablename = 'test';
>  schemaname | tablename | tableowner | tablespace | hasindexes |
> hasrules | hastriggers
> ------------+-----------+------------+------------+------------+----------+-------------
>  public     | test      | build      |            | f          | f
>    | f
> (1 row)
>

Alright.

I don't have time at the moment to create a query, but I would look at
using pg_class(relkind='r' for tables):

https://www.postgresql.org/docs/8.3/catalog-pg-class.html

and joining to pg_tablespace:

https://www.postgresql.org/docs/8.3/catalog-pg-tablespace.html

Order by the tablespace name to see where the tables are located.

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message magodo 2019-05-14 06:24:20 psql dones't reflect exit status if input command via stdin
Previous Message Julie Nishimura 2019-05-14 00:56:59 Re: does postgresql backup require additional space on disk