Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to setup postgres schema? #106

Open
notsungod opened this issue Sep 22, 2024 · 7 comments
Open

how to setup postgres schema? #106

notsungod opened this issue Sep 22, 2024 · 7 comments

Comments

@notsungod
Copy link

i use postgres://user:pw@localhost/db?sslmode=disable&search_path=schema as my url.
But when i connect and try to open a table i get a red popup with error message table must be in the format schema.table` . What am I doing wrong or how can i fix this? Thank you!

@jorgerojas26
Copy link
Owner

What version of lazysql are you on? Make sure you are on the latest version, which right now is the v0.2.9.

@notsungod
Copy link
Author

yes I get this problem on the latest version.

@jorgerojas26
Copy link
Owner

Can you show the schema and table name?

@notsungod
Copy link
Author

notsungod commented Oct 7, 2024

Sorry for the delay. Here you go
Screenshot_2024-10-07_14-08-25_1_1_1.png

Screenshot_2024-06-18_23-17-35_1_1.png

@jorgerojas26
Copy link
Owner

Ok, i think i know what is the problem. I'll fix it soon.

@teto
Copy link

teto commented Oct 31, 2024

0.2.9 on nixos. Same problem. I can browse the database with dbeaver just fine but lazysql shows me no result, just the error already reported here.

EDIT: same problem with 0.3.0

@jorgerojas26
Copy link
Owner

I think this is related to how the tree works for postgres. For Postgres, there must be 3 levels in the tree, i only see 2 in your screenshot. I'm not sure why, but i think that is the problem.

Of course it is a LazySQL problem, the tree needs a refactor. Just wanted to let you know that, maybe you can find a workaround until the refactor is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants