From: Alexandre Leclerc <alexandre.leclerc@gmail.com>
To: Joe Conway <mail@joeconway.com>
Cc: Dawid Kuroczko <qnex42@gmail.com>
Cc: PERFORM <pgsql-performance@postgresql.org>
Subject: Re: Flattening a kind of 'dynamic' table
Date: Fri, 28 Jan 2005 13:15:44 -0500
Message-ID: <1dc7f0e3050128101569232b5b@mail.gmail.com> (raw)
In-Reply-To: <41FA6993.5000702@joeconway.com>
References: <1dc7f0e305012707234159cfc8@mail.gmail.com>
<758d5e7f050127082755f9af12@mail.gmail.com>
<1dc7f0e30501270943683ced12@mail.gmail.com>
<758d5e7f050128000716f28a59@mail.gmail.com>
<1dc7f0e305012806254e8540f4@mail.gmail.com>
<41FA6993.5000702@joeconway.com>
On Fri, 28 Jan 2005 08:34:27 -0800, Joe Conway <mail@joeconway.com> wrote:
> Alexandre Leclerc wrote:
> >>>>>Here a normal listing of design.product_department_time:
> >>>>> product_id | department_id | req_time
> >>>>>------------+---------------+----------
> >>>>> 906 | A | 3000
> >>>>> 906 | C | 3000
> >>>>> 906 | D | 1935
> >>>>> 907 | A | 1500
> >>>>> 907 | C | 1500
> >>>>> 907 | D | 4575
> >>>>> 924 | A | 6000
> >>>>> 924 | C | 1575
>
> Sorry for jumping in on this thread so late -- I haven't been able to
> keep up with the lists lately.
>
> If I understand what you want correctly, you should be able to use
> crosstab from contrib/tablefunc:
I'm a little bit confused on how to install this contirb. I know my
contrib package is installed, but I don't know how to make it work in
postgresql. (Using 7.4.5-1mdk on Mandrake Linux.)
--
Alexandre Leclerc
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-performance@postgresql.org
Cc: alexandre.leclerc@gmail.com, mail@joeconway.com, qnex42@gmail.com
Subject: Re: Flattening a kind of 'dynamic' table
In-Reply-To: <1dc7f0e3050128101569232b5b@mail.gmail.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