Optmizar query - Mailing list pgsql-general

From Josué Maldonado
Subject Optmizar query
Date
Msg-id 415473A2.5030906@lamundial.hn
Whole thread Raw
List pgsql-general
Hola como estan,

Es posible optimizar la siguiente consulta:

select '3ARR' as level,
coalesce(dpe_costod,0),
dpe_productfk,dpe_procode,
dpe_procode2, stamp,dpe_qty,
dpe_qtyrec,dpe_provfk,
coalesce(dpe_costol,0) from detpa
where dpe_productfk=5 and
dpe_provfk=5 and
stamp in
(select max(stamp) from detpa b
where dpe_productfk=nprod and
dpe_provfk=nprov)

Uso postgres 7.4.3.

GRacias por anticipado.


--
Sinceramente,
Josué Maldonado.
"La palabra imposible sólo se halla en el diccionario de los necios."
--Napoleón.

pgsql-general by date:

Previous
From: Amin Abdulghani
Date:
Subject: Re: Removed and then missing pg_clog file
Next
From: Tom Lane
Date:
Subject: Re: LOG: failed to commit transaction_isolation