Why pgAdmin 4?
Transcript of Why pgAdmin 4?
![Page 1: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/1.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Why pgAdmin 4?Khushboo Vashi | 2016.11.03
![Page 2: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/2.jpg)
© 2016 EDB. All rights reserved.
pgAdmin 4
• Introduction
• Basic Architecture
• Features
![Page 3: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/3.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
INTRODUCTION
![Page 4: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/4.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
• Web based Open Source GUI management tool for PostgreSQL
• Fourth generation; replacing pgAdmin III written in C++
• Supports all the features of pgAdmin III except a few which are
known to be largely unused
• Supports PostgreSQL 9.2 and above and its derivatives such as
EDB Postgres Advanced Server
• Easily Extendable (Modular Architecture)
What is pgAdmin 4?
![Page 5: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/5.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Technologies
• Python
‣Server side scripting
‣Supported versions: 2.7.x & 3.0 to 3.4
• Flask, micro-framework
‣Python application framework
• Javascript/JQuery/Backbone
‣Client side scripting
• Bootstrap
‣HTML layouts
![Page 6: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/6.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
BASIC ARCHITECTURE
![Page 7: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/7.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Deployable
• In a desktop runtime, in a single user mode
• In a web server using WSGI, in a multi user mode
![Page 8: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/8.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Framework
The application provides a framework for extensibility
• Tree view nodes are all plugins
• Individual tools are plugins
• Database drivers are plugins, to allow support for postgres
derivatives
• The module wise test-cases are plugins
![Page 9: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/9.jpg)
© 2016 EDB. All rights reserved.
Demo
![Page 10: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/10.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
FEATURES
![Page 11: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/11.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Usability
• Use of one or more servers simultaneously
• Slick and pretty web based Interface
• Responsive layout
• No full-page loading, used AJAX for partial loading
• Dock-able panels
• No sub-dialogues when working with any Postgres object
![Page 12: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/12.jpg)
© 2016 EDB. All rights reserved.
Demo
![Page 13: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/13.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Functional Features
• Supports all the PostgreSQL database object types
• Query tool
• Debugger for procedural languages
• Dashboards for simple real time monitoring
• Grant wizard
• Backup, Restore, Vacuum and Analyze on demand
• Manage pgAgent
• Automated unit testing
![Page 14: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/14.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
PostgreSQL Database objects
Functional Features
• All the PostgreSQL database objects like servers, databases,
table-spaces, roles, extensions, schemas, tables, indexes,
constraints, triggers, functions etc. are supported.
• CRUD operations for all the PostgreSQL database objects
• Separate panels for:
‣Reverse engineered SQL
‣Statistics
‣Dependents
‣Dependencies
![Page 15: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/15.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Query Tool
Functional Features
• View / Modify data, limited by tables with primary keys • Filter the result set • Export Data as csv file
View Data
• Execute arbitrary SQL commands • Export Data to a csv file • Graphical explain plan • View Analytical information about a SQL statement • Auto complete • Import SQL script through File Manager
![Page 16: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/16.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Procedural language debugger
Functional Features
• Support for plpgsql and edbspl languages
• All the basic needs of the debugging are supported:
‣Set/Clear break point
‣Play/pause
‣Step over/Into
![Page 17: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/17.jpg)
© 2016 EDB. All rights reserved.
Demo
![Page 18: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/18.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Automated test framework
Functional Features
• Each individual module having its own test-case set
• Can run module wise test-cases
• Application level test-cases can also be executed
![Page 19: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/19.jpg)
© 2016 EDB. All rights reserved.
Demo
![Page 20: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/20.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.
Where to report?
Bug Report
• Log issue at https://redmine.postgresql.org/ under pgAdmin4 project
What to report?
• Issue Details
• Describe the issue properly
• Steps to reproduce the issue
• Mention desktop/web server mode
• Mention OS details (name, version etc)
• Logs (Web Server, and pgAdmin 4)
![Page 21: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/21.jpg)
© 2016 EDB. All rights reserved.
More Info• Website
• https://www.pgadmin.org
• Source code • https://git.postgresql.org/gitweb/p=pgadmin4.git
• Mailing list • [email protected] • [email protected]
![Page 22: Why pgAdmin 4?](https://reader034.fdocuments.us/reader034/viewer/2022052607/587192751a28abd4678ba4a9/html5/thumbnails/22.jpg)
© Copyright EnterpriseDB Corporation, 2015. All Rights Reserved.