pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feeddatabase and table information collect
4+ messages / 3 participants
[nested] [flat]
* database and table information collect
@ 2015-10-19 23:07 許耀彰 <kpm906@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: 許耀彰 @ 2015-10-19 23:07 UTC (permalink / raw)
To: pgsql-bugs
Dear Support Team,
How can we know each table of database information as listed as below?
Maximum Database Size
Maximum Table Size
Maximum Row Size
Maximum Field Size
Maximum Rows per Table
Maximum Columns per Table
Maximum Indexes per Table
Thank you.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: database and table information collect
@ 2015-10-20 02:07 Bruce Momjian <bruce@momjian.us>
parent: 許耀彰 <kpm906@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Bruce Momjian @ 2015-10-20 02:07 UTC (permalink / raw)
To: 許耀彰 <kpm906@gmail.com>; +Cc: pgsql-bugs
On Tue, Oct 20, 2015 at 07:07:32AM +0800, 許耀彰 wrote:
> Dear Support Team,
> How can we know each table of database information as listed as below?
>
>
> Maximum Database Size
>
> Maximum Table Size
>
> Maximum Row Size
>
> Maximum Field Size
>
> Maximum Rows per Table
>
> Maximum Columns per Table
>
> Maximum Indexes per Table
See this:
https://wiki.postgresql.org/wiki/FAQ#What_is_the_maximum_size_for_a_row.2C_a_table.2C_and_a_database...
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Roman grave inscription +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: database and table information collect
@ 2015-10-20 04:30 許耀彰 <kpm906@gmail.com>
parent: Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 4+ messages in thread
From: 許耀彰 @ 2015-10-20 04:30 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-bugs
Dear Bruce,
How do we know our database situation as listed as below: (How many size
of each table used condition? ) Thank you.
> Maximum Database Size
>
> Maximum Table Size
>
> Maximum Row Size
>
> Maximum Field Size
>
> Maximum Rows per Table
>
> Maximum Columns per Table
>
> Maximum Indexes per Table
2015-10-20 10:07 GMT+08:00 Bruce Momjian <bruce@momjian.us>:
> On Tue, Oct 20, 2015 at 07:07:32AM +0800, 許耀彰 wrote:
> > Dear Support Team,
> > How can we know each table of database information as listed as below?
> >
> >
> > Maximum Database Size
> >
> > Maximum Table Size
> >
> > Maximum Row Size
> >
> > Maximum Field Size
> >
> > Maximum Rows per Table
> >
> > Maximum Columns per Table
> >
> > Maximum Indexes per Table
>
> See this:
>
>
> https://wiki.postgresql.org/wiki/FAQ#What_is_the_maximum_size_for_a_row.2C_a_table.2C_and_a_database...
>
> --
> Bruce Momjian <bruce@momjian.us> http://momjian.us
> EnterpriseDB http://enterprisedb.com
>
> + As you are, so once was I. As I am, so you will be. +
> + Roman grave inscription +
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: database and table information collect
@ 2015-10-20 05:15 John R Pierce <pierce@hogranch.com>
parent: 許耀彰 <kpm906@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: John R Pierce @ 2015-10-20 05:15 UTC (permalink / raw)
To: pgsql-bugs
On 10/19/2015 9:30 PM, 許耀彰 wrote:
> Dear Bruce,
> How do we know our database situation as listed as below: (How many
> size of each table used condition? ) Thank you.
these questions would better be asked of the pg_general email list, and
not the bug reporting mail list, as they are not bug reports.
that said, this was answered when you asked it 3 days ago... there's a
series of functions like pg_relation_size(), pg_total_relation_size()
which will give you the size of a specific table. these are all
documented here,
http://www.postgresql.org/docs/current/static/functions-admin.html
if you want the size of every table, then you could do something like...
select table_schema || '.' || table_name,
pg_size_pretty(pg_total_relation_size(table_schema||'.'||table_name))
from informa
tion_schema.tables where table_schema not in ('pg_catalog',
'information_schema') order by pg_total_relation_size(table_schema||'.'|
|table_name) desc;
--
john r pierce, recycling bits in santa cruz
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2015-10-20 05:15 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-10-19 23:07 database and table information collect 許耀彰 <kpm906@gmail.com>
2015-10-20 02:07 ` Bruce Momjian <bruce@momjian.us>
2015-10-20 04:30 ` 許耀彰 <kpm906@gmail.com>
2015-10-20 05:15 ` John R Pierce <pierce@hogranch.com>
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