Skip to Content

Accessing the Tables Submenu in pgAdmin

  • The Tables submenu in pgAdmin allows easy access to table operations.
  • It is hidden by default but can be enabled by checking ‘Show system objects’ in database properties.
  • Other methods like SQL Editor, dialog boxes, tools provide additional ways to manage tables.
  • Enabling the Tables submenu makes frequent table administration more convenient.

With pgAdmin, the Tables submenu allows you to manage the tables in your PostgreSQL database. However, this submenu is hidden by default. Here is how to open it:

Introduction

pgAdmin is a popular open source administration and development platform for PostgreSQL. It provides a graphical interface to easily interact with PostgreSQL databases.

One useful feature in pgAdmin is the Tables submenu, which lists all the tables in a selected database and allows you to perform operations like creating, editing, and dropping tables. However, this submenu is not visible by default.

How to Open the Tables Submenu

There are two methods to open the Tables submenu in pgAdmin:

Method 1: Right-click on the database

  1. In the Browser pane, expand the Servers section and navigate to the database you want to manage tables for.
  2. Right-click on the database name.
  3. In the context menu, click on ‘Properties’.
  4. In the Properties window, select the ‘Tables’ tab.
  5. Check the box next to ‘Show system objects’.
  6. Click ‘OK’ to save the changes.

The Tables submenu in pgAdmin allows easy access to table operations. It is hidden by default but can be enabled by checking 'Show system objects' in database properties.

The Tables submenu will now be visible when you expand that database in the Browser pane.

Method 2: Edit database properties

  1. Right-click on the database and select ‘Properties’.
  2. Go to the ‘Tables’ tab.
  3. Check ‘Show system objects’.
  4. Click ‘OK’ to save changes.

The Tables submenu will be enabled after this.

Why the Tables Submenu is Hidden by Default

The Tables submenu is hidden by default for PostgreSQL system databases like ‘postgres’, ‘template0’, and ‘template1’. This prevents accidental changes to critical system tables in these databases.

For regular databases created by users, the submenu is hidden to declutter the interface. Most users don’t need to constantly see the table objects.

Conclusion

The Tables submenu in pgAdmin allows for easy management of database tables. Unchecking ‘Show system objects’ exposes this useful submenu. With it enabled, you can now conveniently perform table operations like create, alter, drop etc from the graphical interface.

Frequently Asked Questions (FAQs)

Question: Does this work for all database types in pgAdmin?

Answer: Yes, the steps outlined above will expose the Tables submenu for any PostgreSQL database type in pgAdmin like – postgres, template0, template1, user-created dbs, etc.

Question: Where can I find the Tables submenu option?

Answer: The option to enable/disable the Tables submenu is found in the ‘Properties’ window of each database. Go to the ‘Tables’ tab and check/uncheck ‘Show system objects’.

Question: Is there a way to always keep it enabled?

Answer: Unfortunately, there is no persistent setting in pgAdmin currently to always show the Tables submenu. It needs to be enabled at a database level every time you want to access it.

Question: What permissions do I need?

Answer: You need adequate permissions on that database to edit its properties and enable the Tables submenu. Read-only users may not be able to access the submenu.

Additional Ways to Manage Tables in pgAdmin

While the Tables submenu provides easy access to table management, pgAdmin offers some other methods as well:

SQL Editor

The SQL Editor allows you to write and execute SQL commands to create, alter, delete etc tables:

  • Write SQL queries like CREATE TABLE, ALTER TABLE, DROP TABLE etc.
  • Select the database to run queries on.
  • Executes SQL commands directly on the server.

Dialogs

pgAdmin includes dialog boxes to manage tables without writing SQL:

  • Right-click a database and select ‘Create’ > ‘Table’ to open Create Table dialog.
  • Enter details and pgAdmin generates the SQL in background.
  • Other dialogs like Alter Table, Drop Table etc. also available.
  • Provides interfaces for visually managing tables.

Tools

The Tools menu has options like Restore, Import/Export, Backup etc:

  • Backup tool allows backing up table data.
  • Restore can recover backed up tables.
  • Import/Export to move data between databases.
  • Provides higher level utilities for table management.

Disclaimer: The content provided here is for informational purposes only. The author makes no warranties about the accuracy or completeness of this information. Always refer to official PostgreSQL documentation for the most up-to-date information.

Alex Lim is a certified IT Technical Support Architect with over 15 years of experience in designing, implementing, and troubleshooting complex IT systems and networks. He has worked for leading IT companies, such as Microsoft, IBM, and Cisco, providing technical support and solutions to clients across various industries and sectors. Alex has a bachelor’s degree in computer science from the National University of Singapore and a master’s degree in information security from the Massachusetts Institute of Technology. He is also the author of several best-selling books on IT technical support, such as The IT Technical Support Handbook and Troubleshooting IT Systems and Networks. Alex lives in Bandar, Johore, Malaysia with his wife and two chilrdren. You can reach him at [email protected] or follow him on Website | Twitter | Facebook

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that is committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we have not implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you are currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.