Skip to content

Commit 8e59cdf

Browse files
committed
Specify schema to fix pg11 pg_dump.
1 parent 7e36809 commit 8e59cdf

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

expected/zson.out

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ INSERT INTO nocompress VALUES
3737
]
3838
');
3939
SELECT zson_learn('{{"nocompress", "x"}}');
40-
zson_learn
41-
-------------------------------------------------------------------------------
42-
Done! Run " select * from zson_dict where dict_id = 0; " to see a dictionary.
40+
zson_learn
41+
--------------------------------------------------------------------------------------
42+
Done! Run " select * from public.zson_dict where dict_id = 0; " to see a dictionary.
4343
(1 row)
4444

4545
SELECT dict_id, word FROM zson_dict ORDER BY dict_id, word COLLATE "C";
@@ -53,9 +53,9 @@ SELECT dict_id, word FROM zson_dict ORDER BY dict_id, word COLLATE "C";
5353
(5 rows)
5454

5555
SELECT zson_learn('{{"nocompress", "x"}}', 10000, 1, 128, 1);
56-
zson_learn
57-
-------------------------------------------------------------------------------
58-
Done! Run " select * from zson_dict where dict_id = 1; " to see a dictionary.
56+
zson_learn
57+
--------------------------------------------------------------------------------------
58+
Done! Run " select * from public.zson_dict where dict_id = 1; " to see a dictionary.
5959
(1 row)
6060

6161
SELECT dict_id, word FROM zson_dict ORDER BY dict_id, word COLLATE "C";

zson.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ dict_load(int32 dict_id)
109109
{
110110
Oid argtypes[] = { INT4OID };
111111
savedPlanLoadDict = SPI_prepare(
112-
"select word_id, word from zson_dict where dict_id = $1 "
112+
"select word_id, word from public.zson_dict where dict_id = $1 "
113113
"order by word",
114114
1, argtypes);
115115
if(savedPlanLoadDict == NULL)
@@ -316,7 +316,7 @@ get_current_dict_id()
316316
if(savedPlanGetDictId == NULL)
317317
{
318318
savedPlanGetDictId = SPI_prepare(
319-
"select max(dict_id) from zson_dict;", 0, NULL);
319+
"select max(dict_id) from public.zson_dict;", 0, NULL);
320320
if (savedPlanGetDictId == NULL)
321321
elog(ERROR, "Error preparing query");
322322
if (SPI_keepplan(savedPlanGetDictId))

zson.control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ comment = 'ZSON: an extension for transparent JSONB compression'
22
default_version = '1.1'
33
module_pathname = '$libdir/zson'
44
relocatable = false
5+
schema = public

0 commit comments

Comments
 (0)