Re: Optimizing suggestions - Mailing list pgsql-general

From Tom Lane
Subject Re: Optimizing suggestions
Date
Msg-id 4788.1024782488@sss.pgh.pa.us
Whole thread Raw
In response to Optimizing suggestions  (David Ford <david+cert@blue-labs.org>)
List pgsql-general
David Ford <david+cert@blue-labs.org> writes:
> As stated above, I'd like to fetch a count of rows
> per day for the last N days.

GROUP BY seems like the obvious answer...

> In the near future I'm going to split this table up into many sub tables

Why?  Aren't you just going to have a need for lots of joins, if you
do that?

            regards, tom lane

pgsql-general by date:

Previous
From: "Bruno Baguette"
Date:
Subject: - pl/pgSQL - How can I intercept an eventual exception and put it in a text ?
Next
From: Tom Lane
Date:
Subject: Re: COPY problem