Re: [GENERAL] arrays

From: Roland Roberts <roland(at)astrofoto(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [GENERAL] arrays
Date: 2002-10-01 17:43:02
Message-ID: m2elbaukbd.fsf@kuiper.rlent.pnet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql

>>>>> "Josh" == Josh Berkus <josh(at)agliodbs(dot)com> writes:

Josh> Now, I know at least one person who is using arrays to store
Josh> scientific data. However, that data arrives in his lab in
Josh> the form of matrices, and is not used for joins or query
Josh> criteria beyond a simple "where" clause.

Indeed, my first attempt to use arrays was to maintain some basic
statistics about a set of data. The array elements where to be
distribution moments and would only be used in "where" clauses. The
problem was that I wanted to be about to update the statistics using
triggers whenever the main data was updated. The inability to access
a specific array element in PL/pgSQL code made this so painful I ended
up just extending a table with more columns.

roland
--
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
roland(at)rlenter(dot)com 76-15 113th Street, Apt 3B
roland(at)astrofoto(dot)org Forest Hills, NY 11375

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Christian Imbeault 2002-10-01 17:46:22 count() for a select statement?
Previous Message Jean-Christian Imbeault 2002-10-01 17:40:13 Re: Query plan not using index for some reason.

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2002-10-01 17:52:53 Re: [SQL] arrays
Previous Message Tim Knowles 2002-10-01 15:36:09 Re: Postgresql likes Tuesday...

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2002-10-01 17:52:53 Re: [SQL] arrays
Previous Message Tom Lane 2002-10-01 14:52:01 Re: alter user does not changes password