Skip to content

Commit a0d4201

Browse files
committed
Version 1.1. Better support of pg_dump utility
1 parent 6842539 commit a0d4201

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
EXTENSION = zson
22
MODULES = zson
3-
DATA = zson--1.0.sql
3+
DATA = zson--1.0.sql zson--1.0--1.1.sql
44
OBJS = zson.o
55
REGRESS = zson
66

zson--1.0--1.1.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
2+
\echo Use "CREATE EXTENSION zson" to load this file. \quit
3+
4+
SELECT pg_catalog.pg_extension_config_dump('zson_dict', '');

zson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ jsonb_to_zson(PG_FUNCTION_ARGS)
494494
errcode(ERRCODE_INTERNAL_ERROR),
495495
errmsg("Unable to compress jsonb"),
496496
errdetail("zson_dict is not initialized"),
497-
errhint("You probably forgot to execute zson_learn()")
497+
errhint("You probably forgot to execute zson_learn(). In case you are restoring from a backup made via pg_dump, just move the content of zson_dict table above the current line.")
498498
));
499499

500500
pdict = dict_get(dict_id);

zson.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
comment = 'ZSON: an extension for transparent JSONB compression'
2-
default_version = '1.0'
2+
default_version = '1.1'
33
module_pathname = '$libdir/zson'
44
relocatable = false

0 commit comments

Comments
 (0)