Re: [ADMIN] How are ppl monitoring PostgreSQL ... ? What is being monitored ... ?

2006-07-07 Thread hubert depesz lubaczewski
On 7/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Interesting, Hubert.Where/how do you get the data for:- number of transactions per second
periodically (every 5 minutes) i do:select sum(xact_commit) + sum(xact_rollback) from pg_stat_databaseand then just check against previous value, and calculate per/second. this is actually handled nicely by mrtg itself.
- duration of longest queryselect * from pg_stat_activity where current_query !~ 'IDLE' order by query_start asc limit 1;
this has some problems though, but are more or less easily avoidable.depesz-- http://www.depesz.com/ - nowy, lepszy depesz


Re: [ADMIN] PGAdmin Jobs

2006-07-07 Thread Andy Shellam








There is a menu item under Display called System
Objects. Enable this, restart PgAdmin. Then when you connect youll
have all schemas/objects listed.













From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of adey
Sent: 07 July 2006 1:26 am
To: pgsql-admin@postgresql.org;
postgresql-l; [EMAIL PROTECTED]
Subject: [ADMIN] PGAdmin
Jobs







Please assist me in implementing this for the first time?





I have installed Postgres 8.1.4 on my laptop, including Admin, then
accessed the database postgres from PGAdmin 1.4.2 and run the
pgagent.sql script tp populate the database with the following
result:- 











NOTICE:
CREATE TABLE / PRIMARY KEY will create implicit index
pga_jobagent_pkey for table pga_jobagent
NOTICE: CREATE TABLE will create implicit sequence
pga_jobclass_jclid_seq for serial column
pga_jobclass.jclid 
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
pga_jobclass_pkey for table pga_jobclass
NOTICE: CREATE TABLE will create implicit sequence
pga_job_jobid_seq for serial column pga_job.jobid 
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
pga_job_pkey for table pga_job
NOTICE: CREATE TABLE will create implicit sequence
pga_jobstep_jstid_seq for serial column
pga_jobstep.jstid 
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
pga_jobstep_pkey for table pga_jobstep
NOTICE: CREATE TABLE will create implicit sequence
pga_schedule_jscid_seq for serial column
pga_schedule.jscid 
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
pga_schedule_pkey for table pga_schedule
NOTICE: CREATE TABLE will create implicit sequence
pga_exception_jexid_seq for serial column
pga_exception.jexid 
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
pga_exception_pkey for table pga_exception
NOTICE: CREATE TABLE will create implicit sequence
pga_joblog_jlgid_seq for serial column pga_joblog.jlgid

NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
pga_joblog_pkey for table pga_joblog
NOTICE: CREATE TABLE will create implicit sequence
pga_jobsteplog_jslid_seq for serial column
pga_jobsteplog.jslid 
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
pga_jobsteplog_pkey for table pga_jobsteplog

Query
returned successfully with no result in 1407 ms.

...but
these objects don't appear in PGAdmin under the postgres database. If I rerun
all or part of this script, it says the object already exists, and I can see
the objects through psql from the command line, eg: select * from
pgagent.pga_jobstep.

How do I
get these objects to appear in PGAdmin please, and how do I get the schema
Information Schema to appear too?









!DSPAM:14,44adaa6934531998619277! 










[ADMIN] Querying database size

2006-07-07 Thread Benjamin Krajmalnik
Is there a query which can be issued which will return the size of a
database?
I see that in pgadmin you can get the values on a per table manner.
I have looced at the pg_catalog schema, but to be truthful I cannot
figure out how to get that information.

TIA,

Benjamin

---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings


Re: [ADMIN] Querying database size

2006-07-07 Thread Chris Hoover
On 7/7/06, Benjamin Krajmalnik [EMAIL PROTECTED] wrote:
Is there a query which can be issued which will return the size of adatabase?I see that in pgadmin you can get the values on a per table manner.I have looced at the pg_catalog schema, but to be truthful I cannot
figure out how to get that information.TIA,Benjamin---(end of broadcast)---TIP 5: don't forget to increase your free space map settings
select datname, pg_database_size(datname) from pg_database;This assumes your are running 8.x (might be 8.1.x).chris




Re: [ADMIN] Querying database size

2006-07-07 Thread Jeff Frost

If you have 8.1.x you can do something like this:

SELECT pg_size_pretty(database_size('database name'));

example:

SELECT pg_size_pretty(database_size('testdb'));

If you have another version of postgres, check out the dbsize contrib module.


On Fri, 7 Jul 2006, Benjamin Krajmalnik wrote:


Is there a query which can be issued which will return the size of a
database?
I see that in pgadmin you can get the values on a per table manner.
I have looced at the pg_catalog schema, but to be truthful I cannot
figure out how to get that information.

TIA,

Benjamin

---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings




--
Jeff Frost, Owner   [EMAIL PROTECTED]
Frost Consulting, LLC   http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954

---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings