pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Judith Altamirano <jaltamirano@lux.com.mx>
Cc: pgsql-sql@postgresql.org
Subject: Re: Working slow
Date: Mon, 21 Sep 2009 19:56:06 -0600
Message-ID: <dcc563d10909211856x54e8aewefef5d5ba058c3f1@mail.gmail.com> (raw)
In-Reply-To: <4AB786A0.4040408@lux.com.mx>
References: <4AB786A0.4040408@lux.com.mx>

On Mon, Sep 21, 2009 at 7:58 AM, Judith Altamirano
<jaltamirano@lux.com.mx> wrote:
> hello every body, I'm having a data base in a point of sale that is getting
> frozen, I already have run a vacuum -z -d to reindex the data base and
> nothing happens...... Some suggestions to speed the process, Do you guys
> think that the data base is nearly to broke?

vacuumdb does not reindex, reindexdb does that.

Hard to say with so little evidence.

What does top, or vmstat 1, or iostat 10 or

select datname, current_query, waiting, (now()-query_start)::time(0) as runtime
from pg_stat_Activity
where current_query not ilike '%idle%'
order by query_start limit 10

have to say?

Is the database already bloated?  If so, how big is /data/base
compared to usual?



view thread (3+ messages)  latest in thread

Message-ID: <dcc563d10909211856x54e8aewefef5d5ba058c3f1@mail.gmail.com>
Permalink:  ../dcc563d10909211856x54e8aewefef5d5ba058c3f1@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10909211856x54e8aewefef5d5ba058c3f1@mail.gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@gmail.com, jaltamirano@lux.com.mx
  Subject: Re: Working slow
  In-Reply-To: <dcc563d10909211856x54e8aewefef5d5ba058c3f1@mail.gmail.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