pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mathias Stjernström <mathias@globalinn.com>
To: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: how i can restrict databaseusers ?
Date: Fri, 31 Oct 2008 12:36:23 +0100
Message-ID: <BC809CB1-DBC5-4E4E-9EC4-90E1C2A87870@globalinn.com> (raw)
In-Reply-To: <639ce0480805200657l82cd49coe381814a2d86c655@mail.gmail.com>
References: <639ce0480805200657l82cd49coe381814a2d86c655@mail.gmail.com>

Hi!

I do not think you can restrict resources on a user level or at any  
lever for that matter.

There are numbers of ways to monitor all kinds of values. Just do a  
quick search on google and you will find what you looking for.

This query can be used to display all database sizes.

SELECT  
pg_database 
.datname,pg_size_pretty(pg_database_size(pg_database.datname)) AS size  
FROM pg_database;

Cheers!

Mathias



On 20 maj 2008, at 15.57, pronix pronix wrote:

> hello
> how i can restrict dbusers ( user's db size, cpu time)?
> how i can monitoring this parameters

Attachments:

  PGP.sig (application/pgp-signature, 485B) download

view thread (5+ messages)  latest in thread

Message-ID: <BC809CB1-DBC5-4E4E-9EC4-90E1C2A87870@globalinn.com>
Permalink:  ../BC809CB1-DBC5-4E4E-9EC4-90E1C2A87870@globalinn.com/
Also on:    postgresql.org/message-id/BC809CB1-DBC5-4E4E-9EC4-90E1C2A87870@globalinn.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mathias@globalinn.com
  Subject: Re: how i can restrict databaseusers ?
  In-Reply-To: <BC809CB1-DBC5-4E4E-9EC4-90E1C2A87870@globalinn.com>
  References: <639ce0480805200657l82cd49coe381814a2d86c655@mail.gmail.com> <BC809CB1-DBC5-4E4E-9EC4-90E1C2A87870@globalinn.com>

* 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