pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Christopher Browne <cbbrowne@libertyrms.info>
To: Fernando Papa <fpapa@claxson.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: I can't wait too much: Total runtime 432478.44 msec
Date: Fri, 1 Aug 2003 14:31:52 -0700
Message-ID: <200308011431.52677.josh@agliodbs.com> (raw)
In-Reply-To: <60u191jcgj.fsf@dev6.int.libertyrms.info>
References: <60u191jcgj.fsf@dev6.int.libertyrms.info>

Fernando,

>  AND cont_publicacion.fecha_publicacion = (SELECT max(cp1.fecha_publicacion) 
>                   FROM cont_publicacion cp1  
>                   WHERE cp1.id_instalacion = cont_publicacion.id_instalacion 
>                     AND cp1.id_contenido = cont_publicacion.id_contenido  
>                     AND cp1.generar_vainilla = 
cont_publicacion.generar_vainilla)     

Or event changing it to:

AND EXISTS (SELECT max(cp1.fecha_publicacion)
	FROM cont_publicacion cp1
	WHERE cp1.id_instalacion = cont_publicacion.id_instalacion 
	AND cp1.id_contenido = cont_publicacion.id_contenido  
	AND cp1.generar_vainilla = cont_publicacion.generar_vainilla
	HAVING max(cp1.fecha_publicacion) = cont_publicacion.fecha_publicacion)
-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (17+ messages)  latest in thread

Message-ID: <200308011431.52677.josh@agliodbs.com>
Permalink:  ../200308011431.52677.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200308011431.52677.josh@agliodbs.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, cbbrowne@libertyrms.info, fpapa@claxson.com
  Subject: Re: I can't wait too much: Total runtime 432478.44 msec
  In-Reply-To: <200308011431.52677.josh@agliodbs.com>
  References: <60u191jcgj.fsf@dev6.int.libertyrms.info> <200308011431.52677.josh@agliodbs.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