L
L
leprofessional2016-03-14 22:58:05
PostgreSQL
leprofessional, 2016-03-14 22:58:05

How to store write options in PostgreSql?

The idea is, it would be cool if I had a hash type in which I could put key=>value values. I will also need to filter records by these values. Prompt how it is correct to organize a DB?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2016-03-14
@POS_troi

It would be cool if you created a table with two fields and stored your values, you can even filter - I give a tooth 100% works.

E
e11it, 2016-03-22
@e11it

You can use the jsonb type. If there are many keys, then you can impose gin index.
SM:
- one
- two

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question