From: Adrian Klaver <adrian.klaver@aklaver.com>
To: luis.roberto@siscobra.com.br, Charles Clavadetscher <clavadetscher@swisspug.org>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Table sizes
Date: Wed, 30 Sep 2020 06:59:03 -0700
Message-ID: <bf186f78-8f6c-7902-908e-20d9ac2d20c2@aklaver.com> (raw)
In-Reply-To: <56108176.54473966.1601474072988.JavaMail.zimbra@siscobra.com.br>
References: <78366091.53791693.1601467902283.JavaMail.zimbra@siscobra.com.br>
<899489bcefe7f21b9db422b1ca797e15@swisspug.org>
<56108176.54473966.1601474072988.JavaMail.zimbra@siscobra.com.br>
On 9/30/20 6:54 AM, luis.roberto@siscobra.com.br wrote:
> ------------------------------------------------------------------------
>
> Thanks, this worked.
>
> I wonder though, why calling pg_relation_size('users') work (I don't
> need to specify the schema).
Because it is in the search_path. In psql do:
show search_path;
It will show you the schemas Postgres will search for a table name
without using a schema qualification.
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, clavadetscher@swisspug.org
Subject: Re: Table sizes
In-Reply-To: <bf186f78-8f6c-7902-908e-20d9ac2d20c2@aklaver.com>
References: <78366091.53791693.1601467902283.JavaMail.zimbra@siscobra.com.br> <899489bcefe7f21b9db422b1ca797e15@swisspug.org> <56108176.54473966.1601474072988.JavaMail.zimbra@siscobra.com.br> <bf186f78-8f6c-7902-908e-20d9ac2d20c2@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox