Skip to content

Commit 55f02ce

Browse files
committed
Fix the problem with pg_dump, closes #25
1 parent 0739c83 commit 55f02ce

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,7 @@ However, developers usually know when they change a schema significantly. It's
175175
also easy to re-check whether the current schema differs a lot from the original
176176
one using zson\_dict table.
177177

178+
## Open issues
179+
180+
- Intalling the extension in a schema other than `public` is not supported (i.e. `CREATE EXTENSION zson WITH SCHEMA ...`);
181+

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)
@@ -322,7 +322,7 @@ get_current_dict_id()
322322
if(savedPlanGetDictId == NULL)
323323
{
324324
savedPlanGetDictId = SPI_prepare(
325-
"select max(dict_id) from zson_dict;", 0, NULL);
325+
"select max(dict_id) from public.zson_dict;", 0, NULL);
326326
if (savedPlanGetDictId == NULL)
327327
elog(ERROR, "Error preparing query");
328328
if (SPI_keepplan(savedPlanGetDictId))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy