| 1 |
/* contrib/hstore/hstore--1.2--1.3.sql */ |
| 2 |
|
| 3 |
-- complain if script is sourced in psql, rather than via ALTER EXTENSION |
| 4 |
\echo Use "ALTER EXTENSION hstore UPDATE TO '1.3'" to load this file. \quit |
| 5 |
|
| 6 |
CREATE FUNCTION hstore_to_jsonb(hstore) |
| 7 |
RETURNS jsonb |
| 8 |
AS 'MODULE_PATHNAME', 'hstore_to_jsonb' |
| 9 |
LANGUAGE C IMMUTABLE STRICT; |
| 10 |
|
| 11 |
CREATE CAST (hstore AS jsonb) |
| 12 |
WITH FUNCTION hstore_to_jsonb(hstore); |
| 13 |
|
| 14 |
CREATE FUNCTION hstore_to_jsonb_loose(hstore) |
| 15 |
RETURNS jsonb |
| 16 |
AS 'MODULE_PATHNAME', 'hstore_to_jsonb_loose' |
| 17 |
LANGUAGE C IMMUTABLE STRICT; |