From: | isk <isk(at)rdw(dot)ru> |
---|---|
To: | Carol Walter <walterc(at)indiana(dot)edu> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Help with command syntax? |
Date: | 2007-11-13 16:17:45 |
Message-ID: | 1207689533.20071113191745@rdw.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
select pg_database_size('km');
select pg_size_pretty(pg_database_size('km')) as size;
> Greetings,
> Can someone help me with the syntax for running a postgres function
> from the within psql? I need to know the size of several databases.
> The postgres documentation says there is a function that will do what
> I need. The function is pg_database_size(name). I tried select
> pg_database-_size(km). The response I get says there is no column
> "km". I think I must be using the wrong syntax, but haven't found a
> reference to what the correct syntax is.
> Thanks,
> Carol Walter
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
> http://archives.postgresql.org
--
С уважением,
isk mailto:isk(at)rdw(dot)ru
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-11-13 16:54:50 | Re: pg_dumpall error |
Previous Message | Alexander Stanier | 2007-11-13 16:11:53 | Re: Help with command syntax? |