From hstore to jsonb (type of column) - Mailing list pgsql-novice

From Alexandre Delanoë
Subject From hstore to jsonb (type of column)
Date
Msg-id 20150331081101.GA2759@delanoe.org
Whole thread Raw
Responses Re: From hstore to jsonb (type of column)
List pgsql-novice
Dear all,
from hstore to json, I use this:


ALTER TABLE ONLY mytable
ALTER COLUMN mycolumn
TYPE JSON
USING hstore_to_json(mycolumn)
;

ALTER TABLE ONLY mytable
ALTER COLUMN mycolumn
SET DEFAULT '{}'::json
;

But what would it become for jsonb ?

Replacing json by jsonb does not seem effective since there is no
hstore_to_jsonb fucntion apparently.

Many thanks for your help,

Best regards and many thanks for pgsql ecosystem.

--
Alexandre Delanoë


pgsql-novice by date:

Previous
From: Ken Tanzer
Date:
Subject: Re: [SQL] Re: [GENERAL] Link Office Word form document with data from PostgreSQL
Next
From: Florian Schaetz
Date:
Subject: Re: Optimize a big matrix select