pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: isk <isk@rdw.ru>
To: Carol Walter <walterc@indiana.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Help with command syntax?
Date: Tue, 13 Nov 2007 19:17:45 +0300
Message-ID: <1207689533.20071113191745@rdw.ru> (raw)
In-Reply-To: <658CC899-491C-4388-B440-23422C30D9D2@indiana.edu>
References: <658CC899-491C-4388-B440-23422C30D9D2@indiana.edu>

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@rdw.ru




view thread (4+ messages)

Message-ID: <1207689533.20071113191745@rdw.ru>
Permalink:  ../1207689533.20071113191745@rdw.ru/
Also on:    postgresql.org/message-id/1207689533.20071113191745@rdw.ru

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: isk@rdw.ru, walterc@indiana.edu
  Subject: Re: Help with command syntax?
  In-Reply-To: <1207689533.20071113191745@rdw.ru>

* 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