- pgAdmin
- PostgreSQL Tools
- Quick Links
- Latest Videos
- 2021-10-07 — pgAdmin 4 v6.0 Released
- 2021-09-09 — pgAdmin 4 v5.7 Released
- 2021-08-12 — pgAdmin 4 v5.6 Released
- 2021-07-15 — pgAdmin 4 v5.5 Released
- 2019-11-21 — Try pgAdmin online!
- 2018-07-12 — pgAgent v4.0.0 Released
- Desktop Deployment¶
- Configuration¶
- Desktop Runtime Standalone Application¶
- Runtime Menu¶
- Configuration Dialog¶
- Log dialog¶
- How to open pgAdmin 4?
- 4 Answers 4
pgAdmin
PostgreSQL Tools
pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
pgAdmin may be used on Linux, Unix, macOS and Windows to manage PostgreSQL and EDB Advanced Server 9.5 and above.
Quick Links
Latest Videos
Want to see your pgAdmin video here? Email webmaster@pgadmin.org.
2021-10-07 — pgAdmin 4 v6.0 Released
The pgAdmin Development Team are pleased to announce pgAdmin 4 version 6.0. This release of pgAdmin 4 includes 18 bug fixes and new features. For more details please see the release notes.
Notable changes in this release include:
Introduction to ReactJS framework in pgAdmin 4:
ReactJS has a strong developer community and popularity. It has grown to a level where its performance is comparable to that of desktop applications. Migrating pgAdmin to use ReactJS has proven to boost pgAdmin’s performance and user experience.
In this release we have ported the browser Tree, all the object dialogs, and the Grant Wizard.
Features:
- Added support for OWNED BY Clause for sequences.
This feature adds the OWNED BY clause for the sequences. The OWNED BY option causes the sequence to be associated with a specific table column, such that if that column (or its whole table) is dropped, the sequence will be automatically dropped as well.
Bugs/Housekeeping:
- Port object nodes and properties dialogs to React.
- Port browser tree to React.
- Port Grant Wizard to react.
- Remove GPDB support completely.
- Added support to create the Partitioned table using COLLATE and opclass.
- Fixed keyerror issue in schema diff for ‘attnum’ and ‘edit_types’ parameter.
- Fixed an issue where the Execute button of the query tool gets disabled once we change anything in the data grid.
- Ensure that SQL help should work for EPAS servers.
- Fixed an issue where the grant wizard is unresponsive if the database size is huge.
Note: The publication of the python package to PyPi has been delayed and will be completed as soon as possible.
2021-09-09 — pgAdmin 4 v5.7 Released
The pgAdmin Development Team are pleased to announce pgAdmin 4 version 5.7. This release of pgAdmin 4 includes 26 bug fixes and new features. For more details please see the release notes.
Notable changes in this release include:
Features:
- Added support for the truncate table with restart identity.
- Added database and server information on the Maintenance process watcher dialog..
- Allow the referenced table to be the same as the local table in one to many relationship for ERD Tool..
- Make closing tabs to be smarter by focusing on the appropriate tab when the user closed a tab..
- Set PSQLRC and PSQL_HISTORY env vars to apt. user storage path in the server mode..
Bugs/Housekeeping:
- Fixed blank screen issue on windows and also made changes to use NWjs manifest for remembering window size.
- Ensure that trigger function SQL should have ‘create or replace function’ instead of ‘create function’ only.
- Fixed the export image issue where relation lines are over the nodes.
- Fixed width limitation issue in PSQL tool window.
- Fixed an issue where columns with sequences get altered unnecessarily with a schema diff tool.
- Ensure that the lock panel should not be blocked for larger records.
- Fixed an issue where whitespace in function bodies was not applied while generating the script using Schema Diff.
- Introduced the OAUTH2_SCOPE variable for the Oauth2 scope configuration.
- Enables pgAdmin to retrieve user permissions in case of nested roles, which helps to terminate the session for AWS RDS.
- Ensure that pgAdmin should not fail at login due to a special character in the hostname.
2021-08-12 — pgAdmin 4 v5.6 Released
The pgAdmin Development Team are pleased to announce pgAdmin 4 version 5.6. This release of pgAdmin 4 includes 14 bug fixes and new features. For more details please see the release notes.
Notable changes in this release include:
Features:
- Added support to copy SQL from main window to query tool.
This feature is used to copy the SQL script for the selected browser tree node in the query tool. For this we have added new preferences setting ‘Copy SQL from main window to query tool?’
Added support for formatted JSON viewer/editor when interacting with data in a JSON column.
This feature allows the user to format, view and edit JSON data in a very nice way. JSON editors have so many formats to view data differently.
Bugs/Housekeeping:
- Rename the «Resize by data?» to «Columns sized by» and disabled the ‘Maximum column width’ button if ‘Columns sized by’ is set to ‘Column data’.
- Ensure that the login account should be locked after N number of attempts. N is configurable using the ‘MAX_LOGIN_ATTEMPTS’ parameter.
- Fixed CSRF errors for stale sessions by increasing the session expiration time for desktop mode.
- Fixed an issue in the search object when searching in ‘all types’ or ‘subscription’ if the user doesn’t have access to the subscription.
- Fixed an issue where paste was not working through the Right-Click option on PSQL.
- Fixed TypeError ‘NoneType’ object is not sub scriptable.
- Fixed an issue where the titles in query tabs are different.
- Fixed dashboard server activity issue when active_since parameter is None.
2021-07-15 — pgAdmin 4 v5.5 Released
The pgAdmin Development Team are pleased to announce pgAdmin 4 version 5.5. This release of pgAdmin 4 includes 18 bug fixes and new features. For more details please see the release notes.
Notable changes in this release include:
Features:
- Highlighted long running queries on the dashboards
This feature is implemented to highlight the long running queries. It allows the user to provide the warning and alert threshold values in minutes. Depending on the threshold value pgAdmin4 highlights the long running queries on the Dashboard.
Added support for Reassign/Drop Owned for login roles.
This feature allows the user to change the ownership of database objects owned by a database role or remove database objects owned by a database role.
Added support for OAuth 2 authentication
This feature allows the user to connect to the pgAdmin 4 server using OAuth2 authentication. To enable OAUTH2 authentication for pgAdmin, you must configure the OAUTH2 settings in the config_local.py or config_system.py file.
Bugs/Housekeeping:
- Ensure that the Data Output panel can be snapped back after it is detached.
- Fixed replace keyboard shortcut issue in the query tool on the normal keyboard layout.
- Remove leading whitespace and replace it with ‘[. ] ‘ in the Query Tool data grid so cells don’t look empty.
- Fixed an issue in the search object when searching in ‘all types’ or ‘subscription’ if the user doesn’t have access to the subscription.
- Fixed an issue where the New Connection Drop Down has lost default maintenance database, auto-select, and tab-through functionality..
- Ensure that setting ‘Open in new browser tab’ should be visible, it should not be based on the value of ‘ENABLE_PSQL’.
- Disable email deliverability check that was introduced in flask-security-too by default to maintain backwards compatibility.
- Fixed an issue where incorrect column names were listed in the properties of Index.
2019-11-21 — Try pgAdmin online!
Our friends at EnterpriseDB have kindly made an online demo environment for pgAdmin available to allow new users to try it out in their browser without needing to download or install any software. The environment (based on the Katacoda learning platform) includes pgAdmin and PostgreSQL 12, preloaded with the pagila sample database, and is unique to every user allowing a far better experience than typical shared demo environments.
2018-07-12 — pgAgent v4.0.0 Released
The pgAdmin Development Team are pleased to announce the release of pgAgent v4.0.0.
pgAgent is a job scheduler for PostgreSQL; for more information please see the documentation included as part of the pgAdmin documentation at https://www.pgadmin.org/docs/pgadmin4/3.x/pgagent.html.
We expect DEB and RPM packages to be available from the PostgreSQL APT/YUM repositories in due course, as well as an updated installer from EnterpriseDB available through StackBuilder.
Notable changes in this release include:
- Remove the dependency on wxWidgets. pgAgent now uses Boost for thread management and synchronisation [Neel Patel]
- Refactor connection parsing logic to fix issues with and improve handling of connection strings [Thomas Krennwallner]
- Handle 2 digit server version numbers [Ashesh Vashi]
- Fix handling of the «succeeded» flag on job steps which could prevent failure of steps causing the following steps to fail [Sanket Mehta]
Источник
Desktop Deployment¶
pgAdmin may be deployed as a desktop application by configuring the application to run in desktop mode and then utilising the desktop runtime to host the program on a supported Windows, Mac OS X or Linux installation.
The desktop runtime is a standalone application that when launched, runs the pgAdmin server and opens a window to render the user interface.
Pre-compiled and configured installation packages are available for a number of platforms. These packages should be used by end-users whereever possible — the following information is useful for the maintainers of those packages and users interested in understanding how pgAdmin works.
For detailed instructions on building and configuring pgAdmin from scratch, please see the README file in the top level directory of the source code. For convenience, you can find the latest version of the file here, but be aware that this may differ from the version included with the source code for a specific version of pgAdmin.
Configuration¶
From pgAdmin 4 v2 onwards, the default configuration mode is server, however, this is overridden by the desktop runtime at startup. In most environments, no Python configuration is required unless you wish to override other default settings.
See The config.py File for more information on configuration settings.
Desktop Runtime Standalone Application¶
The Desktop Runtime is based on NWjs which integrates a browser and the Python server creating a standalone application.
Runtime Menu¶
Use the File Menu to access the Runtime Menu:
Click to open configuration dialog to configure fixed port, port number and connection timeout.
Click to open the view log dialog to view the pgAdmin 4 logs.
Enter Full Screen
Click to enter/exit the full screen mode. Keyboard Shortcuts: OSX (Cmd + Ctrl + F), Other OS (F10).
Click to change the window size to it original size. Keyboard Shortcuts: OSX (Cmd + 0), Other OS (Ctrl + 0).
Click to increase the zoom level. Keyboard Shortcuts: OSX (Cmd + +), Other OS (Ctrl + +).
Click to decrease the zoom level. Keyboard Shortcuts: OSX (Cmd + -), Other OS (Ctrl + -).
Configuration Dialog¶
Use the Runtime Menu to access the Configuration dialog:
Following are the details of the Fixed port number?, Port Number, and Connection Timeout configuration parameters:
Use a fixed network port number rather than a random one.
The port number to use, if using a fixed port.
The number of seconds to wait for application server startup.
Log dialog¶
Use the Runtime Menu to access the Log dialog:
Click on the Reload button at the bottom to view the latest logs of pgAdmin 4 Server.
When executed, the runtime will automatically try to execute the pgAdmin Python application. If execution fails, it will prompt you with error message displaying a Configure button at the bottom. You can configure a fixed port number to avoid clashes of the default random port number with other applications and a connection timeout if desired.
If the error is related to Python Path or pgAdmin Python file then you need to create a file named ‘dev_config.json’ and specify the following entries:
Note that the dev_config.py file should only be required by developers who are working outside of a standard installation.
The configuration settings are stored in runtime_config.json file, which will be available on Unix systems (
/.local/share/pgadmin/), on Mac OS X (
/Library/Preferences/pgadmin), and on Windows (%APPDATA%/pgadmin).
Источник
How to open pgAdmin 4?
I’ve installed and am trying to open pgAdmin 4 on my Macbook Pro. However, if I right-click it and select «Open», nothing happens.
Then again, if I try to re-download pgAdmin 4 and drag that into the Applications folder, I get an error message saying that pgAdmin 4 is already in use:
So how do I ‘use’ pgAdmin 4? The screenshots on https://www.pgadmin.org/screenshots/#1 suggest that I go to localhost:5050 , but that just gives me a ‘Connection refused’ error. Then again, I seem to recall it working earlier and opening a web UI in a new tab in Chrome, so why am I not seeing that now?
4 Answers 4
I just closed pgAdmin 4 in the Activity Monitor and started it again. Then I see a new tab open up with pgAdmin 4. It apparently is running on a different port (63467) than shown in the screenshots.
Today is my second day using pgAdmin, I downloaded it yesterday and it worked fine, but today I couldn’t find a way to start it up again.
Solution was this.. I found the downloaded .dmg file again (pgadmin4-3.5.dmg) and clicking on that as I did yesterday, then accepting the warning, it created an .app file same as yesterday (pgAdmin 4.app). I then copied that file, and pasted it into my Applications folder, which I didn’t do yesterday.
After doing that I can find that .app file with Launcher, click on it, and it opens a browser tab, starts the client, and shows the server connection I created yesterday.
Since I like shortcuts then I prepared a solution which opens pgAdmin 4 with a quick Alfred/Spotlight shortcut called db without problems for me:
Assuming you have pgAdmin 4.app inside Applications folder already then save the following script as db.app and you should be good to go:
After that I could use Alfred/Spotlight search with a keyword db and it starts up new tab with pgAdmin session.
I am having a similar issue. I installed PostgreSQL11 and Pgadmin4 on my Mac and both worked absolutely fine. However next day when I started my system, PgAdmin was missing. I couldn’t find it anywhere. I could only find the .dmg file, when I clicked on it it went on and did the entire installation again. No error came such as this application is already present or not. Then it worked absolutely fine but next day it went back to the same status. This time I didn’t shut down my system and it remained there even after I shut down the server after clicking on elephant icon next to my wifi icon on top right. However when again I switched off the system it went away and I had to reinstall once again. Another thing I noticed is that I can see Postgre SQL in Launchpad but don’t see PgAdmin 4 elephant icon in my applications folder too. Neither can I find the PgAdmin 4.app file which most online forums mention as solution to this issue.
Источник