Re: crosstab

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Theo Galanakis <Theo(dot)Galanakis(at)lonelyplanet(dot)com(dot)au>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: crosstab
Date: 2005-03-02 04:47:08
Message-ID: 200503012047.08799.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

THeo,

> I have tried using unions or subselects however the table is quite large
> and it takes far too long to run. The most efficient way would be to create
> a stored proc that uses a cursor to loop through the table transforming the
> data into the new table structure. However I would appreciate your feeback
> before writing this procedure?

A proc won't run any faster ... much slower, in fact. Unless you mean that
you want to use it to correct the actual table structure, which is what you
should be doing?

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

In response to

  • crosstab at 2005-03-02 04:30:27 from Theo Galanakis

Browse pgsql-sql by date

  From Date Subject
Next Message Ragnar Hafstað 2005-03-02 07:57:18 Re: psql encoding problem
Previous Message Theo Galanakis 2005-03-02 04:30:27 crosstab