Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 72CEA633EA0 for ; Mon, 21 Sep 2009 23:44:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 61975-05 for ; Tue, 22 Sep 2009 02:44:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f216.google.com (mail-ew0-f216.google.com [209.85.219.216]) by mail.postgresql.org (Postfix) with ESMTP id 6E29A633822 for ; Mon, 21 Sep 2009 23:44:39 -0300 (ADT) Received: by ewy12 with SMTP id 12so3380116ewy.24 for ; Mon, 21 Sep 2009 19:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=h292KKjWwiy51tRjZsZ6ut6Kz8eoVNSpq8+PYTiVDMM=; b=Ki/JwMtVRyNzknbOQo3uCDp8jKCwMIzyqpGLVd7HJ+6arjzgeJQRsTATGPaLH3nuBm yaQALqxBj78q1DTMi1G1fX7r6T202qXgzG/di2Xm9iieI+PMRQ7QeUWwNfPdXf9eYltY J9qE2undent+zGgqAN9q+xnTB8N0U1MSYiyy0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Hu76Zg6PG9p4RyPev0HYZPoe61g0y/o8ZyjDVcRcc9zmzaiQN10CGIbjlXloLgm/N2 xmZI9o1MudaGL9+18tioQYg5xp4suU81eoPRhu0EMlvIdSpyN+GvKuKDTvaX+z+Er9RI XjJd/WiMtupFyIbf5iAiSafsE57Td1Gt2ucdE= Received: by 10.216.88.195 with SMTP id a45mr104674wef.63.1253587477076; Mon, 21 Sep 2009 19:44:37 -0700 (PDT) Received: from ?192.168.0.2? (rsargent.dsl.xmission.com [199.104.125.126]) by mx.google.com with ESMTPS id 10sm439205eyd.10.2009.09.21.19.44.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 21 Sep 2009 19:44:36 -0700 (PDT) Message-ID: <4AB83A2E.6090404@gmail.com> Date: Mon, 21 Sep 2009 20:45:02 -0600 From: Rob Sargent User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Judith Altamirano CC: pgsql-sql@postgresql.org Subject: Re: Working slow References: <4AB786A0.4040408@lux.com.mx> In-Reply-To: <4AB786A0.4040408@lux.com.mx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200909/99 X-Sequence-Number: 33164 Judith Altamirano 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? > > As well as the good points Scott Marlow raised, does the application perform well immediately after a reboot and then slowdown or do all queries take longer than they should (and by how much)? Do you have the sql for typical queries and can you run them with ANALYSE? PS. (Based on the post time vs clock time, I suspect the you machine's clock is out of sync)