Skip to content

使用pg作为元数据引擎时,在已经格式化的情况下提示:database is not formatted,please run juicefs format #2636

Answered by zhijian-pro
ForgQi asked this question in Q&A
Discussion options

You must be logged in to vote

的确会有这个问题,因为 xorm 对 search_path 没有支持。为了支持在非 public 的 schema 中使用 juicefs ,我们会对 search_path 进行限制,只允许用户填一个 schema。?search_path=juicefs,public 将不会被允许。限制后,juicefs 使用的 schema 默认为 public,如果用户设置了 search_path 则 schema 改为 search_path 中设置的 schema。
比如设置 ?search_path=pguser1 juicefs 则使用 pguser1这个 schema 进行操作

这个问题将会在 #2663 中解决

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ForgQi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zhijian-pro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants