Re: PostgreSQL Arrays and Performance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marc Philipp <mail(at)marcphilipp(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL Arrays and Performance
Date: 2006-01-03 18:40:44
Message-ID: 18853.1136313644@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marc Philipp <mail(at)marcphilipp(dot)de> writes:
> A few performance issues using PostgreSQL's arrays led us to the
> question how postgres actually stores variable length arrays. First,
> let me explain our situation.

> We have a rather large table containing a simple integer primary key
> and a couple more columns of fixed size. However, there is a dates
> column of type "timestamp without time zone[]" that is apparently
> causing some severe performance problems.

How large are the arrays? PG is definitely not designed to do well with
very large arrays (say more than a couple hundred elements). You should
reconsider your data design if you find yourself trying to do that.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Klein Balázs 2006-01-03 18:43:21 Re: generic way to retrieve array as rowset
Previous Message Albert Vernon Smith 2006-01-03 18:36:47 Re: insert serial numbers