From: | "Scott Whitney" <swhitney(at)journyx(dot)com> |
---|---|
To: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Help with command syntax? |
Date: | 2007-11-13 16:08:16 |
Message-ID: | 20071113160812.7FB9F3F2316@mail.int.journyx.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
select datid from pg_stat_database where datname='km';
select database_size(that_id);
-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Carol Walter
Sent: Nov 13, 2007 9:35 AM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] Help with command syntax?
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?
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Stanier | 2007-11-13 16:11:53 | Re: Help with command syntax? |
Previous Message | Carol Walter | 2007-11-13 15:35:12 | Help with command syntax? |