question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Usability] Double-click on database to set active (PostgreSQL, maybe others?)

See original GitHub issue

PostgreSQL only allows a connection to access one database at the time.

So when you double-click a database other than the active one, or try to expand its Schemas folder, this will always result in this error message:

image

And you always need to click OK, right-click the database, and choose Set active before proceeding.

It would be nice to skip this extra step, and just make it so that when you double-click a PostgreSQL database it gets automatically set as active. It’s a deliberate action and hard to do by accident.

It may make sense to make this the default behaviour for other databases as well, for consistency, but I’m less sure about that.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
serge-ridercommented, Feb 1, 2018

image

4reactions
jyinpcicommented, Dec 6, 2018

This feature (auto-switch by double-click) had disappeared since 5.2.0. I wish it is brought back. Without it, I sometimes query/update a wrong database - rather dangerous.

Please bring this feature back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PostgreSQL: Parallel CREATE INDEX for better performance
Since version 11 PostgreSQL can use parallel CREATE INDEX, which will eliminate various performance bottlenecks - especially for large ...
Read more >
Documentation: 15: 20.4. Resource Consumption - PostgreSQL
Sets the amount of memory the database server uses for shared memory buffers. ... The setting is ignored on other systems when set...
Read more >
Copy PostgreSQL data from one PC to another
The perhaps easiest way is to do a full dump from the old server and pipe the result straight into the new ...
Read more >
PostgreSQL: features of the open source database - IONOS
Postgres is one of the oldest database management systems. ... their way into other (and mainly commercial) database systems much later.
Read more >
Create a copy of a Database in PostgreSQL - Data School
CREATE DATABASE [Database to create] WITH TEMPLATE [Database to copy] OWNER ... Double-click a database in order to open a psql command line...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found