News for hackers. Stuff that matters.
Re:Hstore development for 9.4 release by andyl on Thursday November 07, 2013 @11:10AM (#6690133)
Postgres Array/Hstore/JSON datatypes have made my Rails apps way simpler. Great combination.
Re:Hstore development for 9.4 release by eksith on Thursday November 07, 2013 @11:56AM (#6690486)
I'd love to know how you've set things up [ if you don't mind me prying ;) ]. It would be interesting to see someone else's approach.
Re:Hstore development for 9.4 release by andyl on Thursday November 07, 2013 @12:42PM (#6690864)
What I did: 1) Use the latest Postgres (9.3) 2) use Rails4 - this provides String/Integer Arrays, HStore, UUIDs out of the box 3) use post_json (https://github.com/webnuts/post_json).

These tools made it simpler to do things like tagging, user-defined data attributes, hierarchical data, flexible configuration data.

It was always possible to store much of this data using text fields and JSON.parse (or some such), but the new Postgres stuff makes the flexible datatypes queryable. And as built-in support for flexible data types comes online, you can throw away your custom serializers.

There's other Postgres datatypes that I haven't used - for geocoding/geosearching, network addresses, etc.

Re:Hstore development for 9.4 release by zen_boy on Thursday November 07, 2013 @11:44AM (#6690408)
Care to expand how? Curious as a Rails developer myself.
Re:Hstore development for 9.4 release by netghost on Thursday November 07, 2013 @12:06PM (#6690548)
If you just want some background, I actually gave a talk about hstore, arrays, and FTS in postgres for rails devs a few months ago.

Links to the talk, slides, sample code, and some follow up articles: http://monkeyandcrow.com/blog/postgres_railsconf2013/

Re:Hstore development for 9.4 release by dalyons on Friday November 08, 2013 @12:55PM (#6697814)
I was in the audience! It was a great session - you're a funny guy, explained the concepts well, and there was some really interesting real(or alternate :p) world use-cases for all this stuff.
Re:Hstore development for 9.4 release by zen_boy on Sunday November 17, 2013 @06:49PM (#6751613)
Great stuff! Seems like the store_accessor works with the :json column type out of the box as well.

Throw in a JSON schema validator and we have full-blown validations for :hstore and :json!

Re:Hstore development for 9.4 release by ddorian43 on Thursday November 07, 2013 @01:23PM (#6691237)
What is missing the a way to update specific fields in json/hsotre columns, or is there a way ?