pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Thomas <paul@tmsl.demon.co.uk>
To: Jaime Casanova <el_vigia_ec@hotmail.com>
Cc: pgsql-performance @ postgresql . org <pgsql-performance@postgresql.org>
Subject: Re: select slow?
Date: Tue, 30 Mar 2004 20:39:21 +0100
Message-ID: <20040330203921.A16296@bacon> (raw)
In-Reply-To: <BAY8-F81VY60mJWEsBk00017a0d@hotmail.com>
References: <BAY8-F81VY60mJWEsBk00017a0d@hotmail.com>


On 30/03/2004 20:25 Jaime Casanova wrote:
> hi all,
> 
> 
> i have an amd athlon with 256 ram (i know, this is not a *real* server 
> but my tables are small)
> 
> i'm using vb6 (win98) with pgsql-7.3.4 (rh8) trough the psqlodbc.
> 
> when i do a select in took long to execute, here is an example
> 
> 
> table icc_m_banco
> 
> CREATE TABLE ICC_M_BANCO (
>       CodBanco             SMALLINT NOT NULL,
>       Descripcion          CHARACTER VARYING(60) NOT NULL,
>       RefContable          NUMERIC,
>       Estado               CHAR(1) NOT NULL,
>       FecRegistro          DATE NOT NULL,
>       CONSTRAINT EstadoBanco CHECK ((Estado = 'A') or (Estado = 'I')),
>       PRIMARY KEY(CodBanco)
> );
> 
> 
> select * from icc_m_banco where codbanco = 1;

select * from icc_m_banco where codbanco = 1::int2;



-- 
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for 
Business             |
| Computer Consultants         | 
http://www.thomas-micro-systems-ltd.co.uk   |
+------------------------------+---------------------------------------------+



view thread (6+ messages)  latest in thread

Message-ID: <20040330203921.A16296@bacon>
Permalink:  ../20040330203921.A16296@bacon/
Also on:    postgresql.org/message-id/20040330203921.A16296@bacon

 · 

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-performance@postgresql.org
  Cc: paul@tmsl.demon.co.uk, el_vigia_ec@hotmail.com
  Subject: Re: select slow?
  In-Reply-To: <20040330203921.A16296@bacon>

* 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