Re: Question about Array data type in PostgreSQL and their link with hash table concept

From: Dariyoosh Dariyoosh <d(dot)sunforums(at)gmail(dot)com>
To: Luca Vernini <lucazeo(at)gmail(dot)com>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Question about Array data type in PostgreSQL and their link with hash table concept
Date: 2014-05-27 12:50:40
Message-ID: CA+fe79paQSMMVuzwB+3Zc0aFySbKLKmQRdrFmFFWHc8AgiUFDg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

Thanks a lot for your clarification and the link about hstore

Regards,
Dariyoosh

On Tue, May 27, 2014 at 2:44 PM, Luca Vernini <lucazeo(at)gmail(dot)com> wrote:

> 2014-05-27 14:39 GMT+02:00 Dariyoosh Dariyoosh <d(dot)sunforums(at)gmail(dot)com>:
>
> > Are arrays in PostgreSQL like associative arrays in Oracle PL/SQL hash
> > tables?, that is an
> > association between key & values? where the integer indexes stand in
> reality
> > for keys?
>
> No, arrays in PostgreSQL are just arrays.
> You can consider the position like a special case of key.. but it is
> not, because it is just a position and cannot be set.
> For key value you can consider hstore:
> http://www.postgresql.org/docs/9.3/static/hstore.html
> Or build your own multi dimension array.
>
> > Thanks in advance,
>
> Regards,
>
> Lucazeo.
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Wampler 2014-05-27 16:00:03 Set flag column on update if other columns change?
Previous Message Luca Vernini 2014-05-27 12:44:39 Re: Question about Array data type in PostgreSQL and their link with hash table concept