pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mdc@keko.com.ar <mdc@keko.com.ar>
To: pgsql-sql@postgresql.org
Subject: Re: help with query!!!
Date: Tue, 15 Apr 2003 10:03:46 -0300
Message-ID: <3e9c0332.9ac.16838@keko.com.ar> (raw)

hi guys


>  numeroVia       | smallint                    | not null
>  fechaHora       | timestamp(3) with time zone | not null

> explain delete from "Transitos"
> where "codigoEstacion"= '02' and
> "numeroVia" = 1 and
> "fechaHora" = '2003-0403 17:34:06.92'::timestamp and
> "medioPago" = 'Efectivo' and
> "tipoTransito"= 'Normal' and
> categoria='01'

>You're casting the constant compared to fechaHora to
>timestamp, which is
>the wrong thing (timestamp != timestamp with timezone); and
>you're not
>casting the constant compared to numeroVia to smallint.
>Each of these
>type mismatches will prevent an indexscan.

 ok , first thanks a lot for your responses, well
 not my are doing this wrong castings, they are from ODBC
driver , my analisys was  from server side, i mean, this
information is send from my aplication via ODBC to
postmaster .
For research propouses start the postmaster with debug level
3 and later ,recreate this queries with additional  explain
clauses for analisis, the ::timestamp in syntax not in my
own code ok ? .
well questions i plan to change this castings , modifing the
database definition
   numeroVia smallint  -> to int4
   fechaHora timeStamp(3) with timezone -> timeStamp(3) *

* milliseconds are very important to me, the aplication
register events at real time and millisecond are difference
into 2 events , application is multithread .

 last question, is posible to make this changes whitout
download the database at all ? , the alter table ..... do
it?

Tia
MDC

pd: Sorry for my english , again ;)

---------------------------------------
¿Todavía no navegás con Keko?
Hacé click aquí: http://www.keko.com.ar




view thread (15+ messages)

Message-ID: <3e9c0332.9ac.16838@keko.com.ar>
Permalink:  ../3e9c0332.9ac.16838@keko.com.ar/
Also on:    postgresql.org/message-id/3e9c0332.9ac.16838@keko.com.ar

 · 

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: mdc@keko.com.ar
  Subject: Re: help with query!!!
  In-Reply-To: <3e9c0332.9ac.16838@keko.com.ar>

* 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