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
Postgres: general setting 'show all databases' doesn't work, only the default database is shown #20602
Comments
Hello @dbeaverforpostgres Do you have a connection with manual or URL type? Additionally, I can't reproduce the issue. If "Show all databases" is ticked in the general preferences -> then "Show all databases" is also ticked for new connections. |
Indeed, we connect exactly as indicated above. Some additional information about the drivers. Since I don't have direct access to the open internet I don't use the maven default but put the driver postgresql-42.6.0.jar locally and refer to it in the drivers.xml file |
Do you know in which file the general options information like "show all databases" are stored so I can see if there's anything missing? |
Hello @dbeaverforpostgres You can take a look on the workspace directory under the following path: .metadata/.plugins/org.eclipse.core.runtime/.settings I have this setting in the |
Thank you a lot for your response. I had a look but apparantly the 'show non default db' setting is set. Nevertheless I need to alter a connection before all databases come visible. Here is the list of all the settings in org.jkiss.dbeaver.core.prefs @dbeaver-read-all-data-types-db@=false |
I thought I got it working when I used an old file instead of the one above but in fact only when editing the connection I get to view all the databases. Same as above @dbeaver-read-all-data-types-db@=false |
The above workaround might work for an existing connection but not a new connection because it takes the username as databasename which doesn't work either. I'd rather wait till this issue is solved before upgrading to the new version. |
Hello @dbeaverforpostgres This info is unavailable. We do not know also. If something changes, you will see it in the Milestone section of this ticket. |
Hi, i would like to provide some extra information about this. I can reproduce the issue either when creating new connection or editing existing connection. The issue also happens when i use the Connect by URL without filling the database name. But if i change to Connect by Host an emptying the database field, it will shows all the database. Hope this helps |
@muhmudrik thank you |
Hello @muhmudrik This is expected behavior (for now). |
Hello everyone, first of all, thanks a lot for your input. I haven't had time to play around for a while but I gave it another try now. I'll add some screenshots to make it clearer. Some strange things happen which can hardly be seen as expected behaviour. then I configured 2 connections. The only difference between the two is that I opened the PostgreSQL tab (I haven't even changed any option) Here's how I set up the connection for both of them The strange thing is that for the connection postgres with opening the PostgreSQL tab is showing all the connections and the other one only the default. I would expect by ticking show all databases in preferences that it is sufficient to see all databases and that I don't need to open the postgresqltab. This is a bug. It would work if you don't set the general preferences which means you have to set them for each connection individually since you need to open the PostgreSQL tab then to tick the box 'show all databases' but this is not something you would expect and is very confusing. |
* dbeaver/pro#2236 add an ability to send all messages to AI * #20602 remove excessive changes --------- Co-authored-by: Matvey16 <82543000+Matvey16@users.noreply.github.com>
Could you give me an idea of the next steps and what the timeline is for putting this bugfix in production? |
@dbeaverforpostgres We hope to fix this issue in one of the next sprints. But we can't guarantee that it will be fixed. |
@arhayka, I see label "blocked" was added but unfortunately there hasn't been any response yet since Mar 4. Any idea how we can get this issue going again? |
Description
In the preferences under Connections/Drivers/PostgreSQL 'show all databases' and 'show databases not available for connection' is ticked.
When creating a new connection you would assume that automatically all databases would be shown but that is not the case.
Nevertheless, if I check the connection settings of a connection I just created, under the PostgreSQL tab indeed 'show all databases' is ticked. Why doesn't it become visible?
So I went to have a look at data-sources.json and saw that the driver properties part is missing.
The strange thing is when I edit the connection , save and reconnect suddenly the driver properties part appears:
e.g.
"provider-properties": {
"@dbeaver-show-non-default-db@": "true",
"@dbeaver-show-template-db@": "false",
"@dbeaver-show-unavailable-db@": "false",
"show-database-statistics": "true",
"@dbeaver-read-all-data-types-db@": "false",
"read-keys-with-columns": "false",
"@dbeaver-use-prepared-statements-db@": "false",
"postgresql.dd.plain.string": "false",
"postgresql.dd.tag.string": "false"
}
Why do I need to edit the connection to get the provider properties part in the data-sources.json?
So as a workaround I figured, I could adapt the drivers.xml and add parameter lines in the driver id part. But I don't know if it would help and if so what the syntax would be?
I also checked the debug logging and there it states that it will start up the default database, no errors
DBeaver Version
Community edition 23.0.2
Operating System
windows
Database and driver
postgresql-42.6.0.jar
Steps to reproduce
In the preferences under Connections/Drivers/PostgreSQL 'show all databases' and 'show databases not available for connection' is ticked.
When creating a new connection you would assume that automatically all databases would be shown but that is not the case.
Nevertheless, if I check the connection settings of a connection I just created, under the PostgreSQL tab indeed 'show all databases' is ticked. Why doesn't it become visible?
So I went to have a look at data-sources.json and saw that the driver properties part is missing.
The strange thing is when I edit the connection , save and reconnect suddenly the driver properties part appears:
e.g.
"provider-properties": {
"@dbeaver-show-non-default-db@": "true",
"@dbeaver-show-template-db@": "false",
"@dbeaver-show-unavailable-db@": "false",
"show-database-statistics": "true",
"@dbeaver-read-all-data-types-db@": "false",
"read-keys-with-columns": "false",
"@dbeaver-use-prepared-statements-db@": "false",
"postgresql.dd.plain.string": "false",
"postgresql.dd.tag.string": "false"
}
Why do I need to edit the connection to get the provider properties part in the data-sources.json?
So as a workaround I figured, I might need to adapt the drivers.xml and add parameter lines in the driver id part. I don't know if it would help and if so what the syntax would be?
Additional context
No response
The text was updated successfully, but these errors were encountered: