pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
should I use postgresql arrays...
3+ messages / 3 participants
[nested] [flat]

* should I use postgresql arrays...
@ 2002-02-23 06:37  Rajesh Kumar Mallah <mallah@trade-india.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Rajesh Kumar Mallah @ 2002-02-23 06:37 UTC (permalink / raw)
  To: pgsql-sql

Hi folks,

Using Postgresql array feature  can siplify
lot of coding in my application layer as well as
database design , for example for storing checkbox
selections in a web page i need not have a
secondary table referencing the master one.

should i be using arrays for that?

My only concern is the SQL compliance , are arrays
part of  standard 2/3 standards?

what if at a later date i decide to migrate my database
to another engine.






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: should I use postgresql arrays...
@ 2002-02-23 17:21  Peter Eisentraut <peter_e@gmx.net>
  parent: Rajesh Kumar Mallah <mallah@trade-india.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2002-02-23 17:21 UTC (permalink / raw)
  To: Rajesh Kumar Mallah <mallah@trade-india.com>; +Cc: pgsql-sql

Rajesh Kumar Mallah writes:

> My only concern is the SQL compliance , are arrays
> part of  standard 2/3 standards?

Arrays are in SQL99, but in a form that's not compatible with PostgreSQL's
current facilities.

-- 
Peter Eisentraut   peter_e@gmx.net




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: should I use postgresql arrays...
@ 2002-02-23 21:32  Christopher Sawtell <csawtell@paradise.net.nz>
  parent: Rajesh Kumar Mallah <mallah@trade-india.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Christopher Sawtell @ 2002-02-23 21:32 UTC (permalink / raw)
  To: Rajesh Kumar Mallah <mallah@trade-india.com>; pgsql-sql

On Saturday 23 February 2002 07:37 pm, Rajesh Kumar Mallah wrote:
> Hi folks,
>
> Using Postgresql array feature  can siplify
> lot of coding in my application layer as well as
> database design , for example for storing checkbox
> selections in a web page i need not have a
> secondary table referencing the master one.
>
> should i be using arrays for that?

It all depends, I have found array operations to be slow. So if you have just 
a few elements, like less than 10 then arrays are ok, but with more e.g. 30+ 
elements, as in my case, imho the whole exercise is not really feasable. I am 
going to re-design the schema to get rid of the arrays as soon as I have a 
moment. Also the code around that part of PostgreSQL has not been visited for 
a fair while and needs some polishing up. I'd avoid them.

> My only concern is the SQL compliance , are arrays
> part of  standard 2/3 standards?
>
> what if at a later date i decide to migrate my database
> to another engine.

You will need to do a fair amount of work to get rid of them.

--
Sincerely etc.,
Christopher Sawtell



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-02-23 21:32 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-23 06:37 should I use postgresql arrays... Rajesh Kumar Mallah <mallah@trade-india.com>
2002-02-23 17:21 ` Peter Eisentraut <peter_e@gmx.net>
2002-02-23 21:32 ` Christopher Sawtell <csawtell@paradise.net.nz>

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