In addition to oid2name mentioned, you might want to know about system catalog schema.
It's explained in manual http://www.postgresql.org/idocs/index.php?catalogs.html -- Yasuo Ohgaki Robert Abbate wrote: > Greetings to all! > > I have a webhosting company, and I'm trying to be able to use PHP to > calculate each of my hosting customer's Postgres database disk usage. It > doesn't seem as easy as MySQL (since MySQL uses the user name to store all > their database files). > > Does anyone know how I can calculate PostgreSQL disk space usage for each of > my hosting user accounts? > > It seems I'm going to have to find out how Postgres keeps track of which > user's database name is and it's corresponding number (so far, I've been > able to determin that Postges uses numbers instead of names). > > Can anyone give me some insight? > > Thanks! > Robert > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php