From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-sql@postgresql.org
Subject: Re: Calling the CTE for multiple inputs
Date: 7 Oct 2012 01:02:46 GMT
Message-ID: <k4qkbm$uah$1@reversiblemaps.ath.cx> (raw)
References: <1349379109760-5726661.post@n5.nabble.com>
On 2012-10-04, air <mojaveranger7@gmail.com> wrote:
> I have a CTE that takes top left and bottom right latitude/longitude values
> along with a start and end date and it then calculates the amount of user
> requests that came from those coordinates per hourly intervals between the
> given start and end date. However, I want to execute this query for about
> 2600 seperate 4-tuples of lat/lon corner values instead of typing them in
> one-by-one. How would I do that? The code is as below:
I see that your're using the CTE only to fill-in the nulls in main query group-by
is it the same plan for the coordinates (non-overlapping ranges)?
how are your coordinates respresented?
--
⚂⚃ 100% natural
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: jasen@xnet.co.nz
Subject: Re: Calling the CTE for multiple inputs
In-Reply-To: <k4qkbm$uah$1@reversiblemaps.ath.cx>
* 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