Unix Technical Forum

Re: Database Size Limits

This is a discussion on Re: Database Size Limits within the pgsql Novice forums, part of the PostgreSQL category; --> To find out the size of a particular postgres database, use the system function: pg_database_size(db_name). The function returns the ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 09:53 PM
Tomeh, Husam
 
Posts: n/a
Default Re: Database Size Limits


To find out the size of a particular postgres database, use the system
function: pg_database_size(db_name). The function returns the db size
in bytes.
For example: select pg_database_size('mydb') ;

I don't believe user quota is implemented in postgres yet to
restrict/control user usage of tablespace.

----

Husam
http://firstdba.googlepages.com


----

Husam Tomeh
Sr. DBA , Database Management & Infrastructure
First American Corporation - RES
Direct: 714.250-6643
Fax: 714.250-6928
2 MacArthur Place, Tower 2, 5Th Floor.
Santa Ana, CA 92707


-----Original Message-----
From: pgsql-novice-owner@postgresql.org
[mailtogsql-novice-owner@postgresql.org] On Behalf Of Q Beukes
Sent: Wednesday, May 17, 2006 1:01 AM
To: Postgresql Novice
Subject: [NOVICE] Database Size Limits

Hey,

How can I determine and limit the size of a database.

If I can determine it only through sql, how can I prevent a user from
further inserting data.

regards
Q Beukes

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
************************************************** ********************
This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged. If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.

Thank you.

FADLD Tag
************************************************** ********************


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:08 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com