pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roland Roberts <roland@astrofoto.org>
To: pgsql-sql@postgresql.org
Subject: Re: [GENERAL] arrays
Date: 01 Oct 2002 13:43:02 -0400
Message-ID: <m2elbaukbd.fsf@kuiper.rlent.pnet> (raw)
In-Reply-To: <web-1734564@davinci.ethosmedia.com>
References: <web-1734564@davinci.ethosmedia.com>

>>>>> "Josh" == Josh Berkus <josh@agliodbs.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@rlenter.com                     76-15 113th Street, Apt 3B
roland@astrofoto.org                       Forest Hills, NY 11375



view thread (36+ messages)  latest in thread

Message-ID: <m2elbaukbd.fsf@kuiper.rlent.pnet>
Permalink:  ../m2elbaukbd.fsf@kuiper.rlent.pnet/
Also on:    postgresql.org/message-id/m2elbaukbd.fsf@kuiper.rlent.pnet

 · 

reply

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: roland@astrofoto.org
  Subject: Re: [GENERAL] arrays
  In-Reply-To: <m2elbaukbd.fsf@kuiper.rlent.pnet>

* 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