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

Поиск
Список
Период
Сортировка
От Luca Vernini
Тема Re: Question about Array data type in PostgreSQL and their link with hash table concept
Дата
Msg-id CAHZ=uVAwWrP5f1vZfu0BagPQV_RH1B-6XGhPP+-pvgQn_gjYNw@mail.gmail.com
обсуждение исходный текст
Ответ на Question about Array data type in PostgreSQL and their link with hash table concept  (Dariyoosh Dariyoosh <d.sunforums@gmail.com>)
Ответы Re: Question about Array data type in PostgreSQL and their link with hash table concept  (Dariyoosh Dariyoosh <d.sunforums@gmail.com>)
Список pgsql-sql
2014-05-27 14:39 GMT+02:00 Dariyoosh Dariyoosh <d.sunforums@gmail.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.



В списке pgsql-sql по дате отправления:

Предыдущее
От: Dariyoosh Dariyoosh
Дата:
Сообщение: Question about Array data type in PostgreSQL and their link with hash table concept
Следующее
От: Dariyoosh Dariyoosh
Дата:
Сообщение: Re: Question about Array data type in PostgreSQL and their link with hash table concept