Non-structuring data comes from an HTML form, i.e. some fields may come, and some may not. They receive a backend on Zend Framework 2 and writes to the database. Well, or reads from the base.
I want to store these fields in the hstore. However, adding data to hstore, which is not very convenient to retrieve it as a string. You have to write an additional class, which, before adding / outputting, will parse the data for the hstore field.
Is it possible, when executing queries to certain fields on the Postgres side, to automatically perform hstore <-> record conversion, for example. Well, or at least hstor <-> json?
Most likely, you can write some kind of trigger, but it would be nice to see an example. Can someone tell me?
like %чего-то-там%when using json I think it will be too slow. - VEV