- Keyboard shortcuts are combinations of keys that you can use to perform various functions and operations in pgAdmin, such as navigating the browser tree, opening the query tool, or executing queries.
- Bookmarks are saved queries or commands that you can create and execute on a specific database without typing them manually. You can also organize your bookmarks into folders and subfolders.
- Favorites are frequently accessed objects such as tables, views, functions, etc. that you can add to the Favorites node in the browser tree for easy access. You can also organize your favorites into folders and subfolders.
pgAdmin is a popular and feature-rich open source administration and development platform for PostgreSQL, the most advanced open source database in the world. pgAdmin can be used on Linux, Unix, macOS and Windows to manage PostgreSQL and EDB Advanced Server 11 and above.
One of the common tasks that pgAdmin users perform is to view or edit data in tables. However, accessing tables in pgAdmin can be tedious, as it requires several clicks to navigate through the database, schema, and public folders. In this article, we will show you how to quickly access tables in pgAdmin using keyboard shortcuts, bookmarks, and favorites. These methods can help you save time and improve your productivity when working with pgAdmin.
Table of Contents
Keyboard Shortcuts
pgAdmin provides keyboard shortcuts for various functions and operations. You can use keyboard shortcuts to navigate the main browser window, dialog tabs, property grid controls, SQL editors, query tool, and debugger. You can also customize the keyboard shortcuts through File > Preferences if desired.
To quickly access tables in pgAdmin using keyboard shortcuts, you can use the following steps:
- Press Alt + Shift + B to focus the browser tree.
- Use the arrow keys to expand or collapse the folders and select the database that contains the table you want to access.
- Press Enter to connect to the database if it is not already connected.
- Press Alt + Shift + C to open the context menu for the database.
- Use the arrow keys to select Schema > public > Tables and press Enter.
- Use the arrow keys to select the table you want to access and press Enter.
Alternatively, you can use the following steps:
- Press Alt + Shift + S to open the search objects dialog.
- Type the name of the table you want to access and press Enter.
- Use the arrow keys to select the table from the search results and press Enter.
Bookmarks
pgAdmin allows you to create bookmarks for frequently used queries or commands. You can use bookmarks to quickly execute queries or commands on a specific database without typing them manually. You can also organize your bookmarks into folders and subfolders.
To quickly access tables in pgAdmin using bookmarks, you can use the following steps:
- Connect to the database that contains the table you want to access.
- Open a query tool by pressing Alt + Shift + Q or by selecting Tools > Query Tool from the menu bar.
- Type a query or command that accesses the table, such as SELECT * FROM table_name; or \d table_name;.
- Click on the bookmark icon on the toolbar or press Ctrl + B to open the Manage Bookmarks dialog.
- Click on Add Bookmark and enter a name and an optional description for your bookmark. You can also select a folder or create a new folder for your bookmark.
- Click on Save to save your bookmark.
To use your bookmark, you can do one of the following:
- Click on the bookmark icon on the toolbar or press Ctrl + B to open the Manage Bookmarks dialog. Select your bookmark and click on Execute or press Enter.
- Right-click on your bookmark in the browser tree and select Execute Bookmark from the context menu.
- Double-click on your bookmark in the browser tree.
Favorites
pgAdmin allows you to create favorites for frequently accessed objects such as databases, schemas, tables, views, functions, etc. You can use favorites to quickly access objects without navigating through the browser tree. You can also organize your favorites into folders and subfolders.
To quickly access tables in pgAdmin using favorites, you can use the following steps:
- Expand the browser tree and select the table you want to access.
- Right-click on the table and select Add to Favorites from the context menu. Alternatively, you can drag and drop the table into the Favorites node in the browser tree.
- Enter a name and an optional description for your favorite. You can also select a folder or create a new folder for your favorite.
- Click on OK to save your favorite.
To use your favorite, you can do one of the following:
- Expand the Favorites node in the browser tree and select your favorite. You can then perform various actions on your favorite such as view/edit data, edit properties, delete, etc.
- Right-click on your favorite in the browser tree and select an action from the context menu.
- Double-click on your favorite in the browser tree to open its properties dialog.
Frequently Asked Questions (FAQs)
Question: How can I view the keyboard shortcuts in pgAdmin?
Answer: You can view the keyboard shortcuts in pgAdmin by selecting Help > Keyboard Shortcuts from the menu bar. This will open a dialog that lists the keyboard shortcuts for various features and functions in pgAdmin.
Question: How can I edit or delete bookmarks or favorites in pgAdmin?
Answer: You can edit or delete bookmarks or favorites in pgAdmin by doing the following:
- To edit or delete bookmarks, click on the bookmark icon on the toolbar or press Ctrl + B to open the Manage Bookmarks dialog. Select your bookmark and click on Edit or Delete. You can also right-click on your bookmark in the browser tree and select Edit Bookmark or Delete Bookmark from the context menu.
- To edit or delete favorites, expand the Favorites node in the browser tree and select your favorite. Right-click on your favorite and select Edit Favorite or Delete Favorite from the context menu. You can also drag and drop your favorite into the Trash node in the browser tree to delete it.
Question: How can I import or export bookmarks or favorites in pgAdmin?
Answer: You can import or export bookmarks or favorites in pgAdmin by doing the following:
- To import or export bookmarks, click on the bookmark icon on the toolbar or press Ctrl + B to open the Manage Bookmarks dialog. Click on Import or Export and select a file to import from or export to. You can also right-click on the Bookmarks node in the browser tree and select Import Bookmarks or Export Bookmarks from the context menu.
- To import or export favorites, right-click on the Favorites node in the browser tree and select Import Favorites or Export Favorites from the context menu. Select a file to import from or export to.
Summary
In this article, we have shown you how to quickly access tables in pgAdmin using keyboard shortcuts, bookmarks, and favorites. These methods can help you save time and improve your productivity when working with pgAdmin. We hope this article has helped you learn how to use pgAdmin more efficiently.
Disclaimer: This article is intended for informational purposes only and does not constitute professional advice. We are not responsible for any errors or omissions in this article or for any damages arising from its use. We recommend that you consult with a qualified PostgreSQL developer before making any changes to your pgAdmin settings or your database.