mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	http://webmail.postgresql.org/~petere/dbsize.html The tarball can be rolled into contrib -- now that I think of it I don't know why I never did that. Never imagined this would have anything to do with that TODO item, though. I figured oid2name accomplished that. Peter Eisentraut peter_e@gmx.net
		
			
				
	
	
		
			12 lines
		
	
	
		
			405 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			405 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| This module contains two functions that report the size of a given
 | |
| database or relation.  E.g.,
 | |
| 
 | |
| SELECT database_size('template1');
 | |
| SELECT relation_size('pg_class');
 | |
| 
 | |
| These functions report the actual file system space.  Thus, users can
 | |
| avoid digging through the details of the database directories.
 | |
| 
 | |
| Copy this directory to contrib/dbsize in your PostgreSQL source tree.
 | |
| Then just run make; make install.
 |