C
C
cat_crash2011-05-30 11:42:21
PostgreSQL
cat_crash, 2011-05-30 11:42:21

Associative arrays in PostgreSQL

Good day.

I'm interested in the question of the presence of associative arrays in Postgre as well as the search for it. Ordinary index arrays exist, and searching for them is clear to me, but I can not find any information on associative arrays.

Ideally would like to see that thread type: Thank you

select * from TABLE where tags['name']='value';


Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
galaxy, 2011-06-04
@galaxy

www.postgresql.org/docs/9.0/static/hstore.html

T
tzlom, 2011-05-30
@tzlom

there is no such thing, use tables, that's what they are for

V
Vlad Frolov, 2011-05-30
@frol

Yes, you, my friend, are an optimist ... If this were the case, then there would be no need to invent non-relational databases.

S
SabMakc, 2011-05-30
@SabMakc

Alternatively, use temporary tables.
PostgreSQL supports them, there shouldn't be any problems.
postgrestips.blogspot.com/2007/07/temp.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question