K
K
Ken Jee2015-08-27 22:40:35
PostgreSQL
Ken Jee, 2015-08-27 22:40:35

How to store parameter values ​​in PostgreSQL?

For example, an XML file (YML file), which is used to upload goods to Yandex Market , is best suited to the question . Inside there are parameters for the product offer: product height, weight, and others. So, the values ​​of these parameters are either numbers, or strings, or sets (a string with an enumeration) ... How to store these values ​​in a table if they are involved in the search? For example, if we consider all values ​​as strings, then how to compare numbers in string representation? Tell me where to dig or maybe someone has already solved such problems and will tell you the solution to this problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya, 2015-08-27
@Machez

use jsonb

S
sim3x, 2015-08-28
@sim3x

www.postgresql.org/docs/current/static/datatype-xm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question