GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [WEB] External database user settings storage (RM #3336) · Issue #1832 · pgadmin-org/pgadmin4

[WEB] External database user settings storage (RM #3336) #1832

New issue
Copy link
New issue
Copy link
Closed
Closed
[WEB] External database user settings storage (RM #3336)#1832
Copy link
Assignees
FaharAbbasRizvi
Labels
Feature
Milestone
6.16

Description

@dpage
dpage
opened on May 7, 2018
Issue body actions

Issue migrated from Redmine: https://redmine.postgresql.org/issues/3336
Originally created by Peter Palka at 2018-05-07 02:32:11 UTC.

h1. Current user settings storage
Right now all user settings are stored in SQLite database file in /var/lib/pgadmin/pgadmin4.db.

h1. Proposal
Ability to store user settings on external database like PostgreSQL

h1. Motivation
During large pgAdmin4 deployment (for example on AWS using Auto Scaling group with load balancer) we can't rely on single SQLite file database as it:

Is not prepared to be failure-proof (no HA support),

May be a bottleneck (not designed to handle many connections concurrently reading/writing data to it).

This implies it can be single point of failure.

To prevent it we can separate user data storage from pgAdmin4 web service by using external database for user storage on another machine. To achieve it the external database connector will be needed.

Reacted by Austen

Activity

  1. dpage commented on May 11, 2018

    @dpage
    dpage
    on May 11, 2018
    ContributorAuthor
    More actions

    Comment migrated from Redmine: https://redmine.postgresql.org/issues/3336#note-1
    Originally created by Akshay Joshi at 2018-05-11 10:12:03 UTC.

    Redmine ticket header update:

    Name Old Value New Value
    Tracker changed Bug Feature
  2. dpage commented on Sep 21, 2018

    @dpage
    dpage
    on Sep 21, 2018
    ContributorAuthor
    More actions

    Comment migrated from Redmine: https://redmine.postgresql.org/issues/3336#note-2
    Originally created by Aditya Toshniwal at 2018-09-21 10:55:56 UTC.

    Redmine ticket header update:

    Name Old Value New Value
    Sprint changed Ready
  3. dpage commented on Sep 2, 2022

    @dpage
    dpage
    on Sep 2, 2022
    ContributorAuthor
    More actions

    Comment migrated from Redmine: https://redmine.postgresql.org/issues/3336#note-3
    Originally created by Aditya Toshniwal at 2022-09-02 11:13:43 UTC.

    Redmine ticket header update:

    Name Old Value New Value
    Relationship (duplicated) changed RM #7665
  4. anovis commented on Sep 19, 2022

    @anovis
    anovis
    on Sep 19, 2022
    More actions

    any thoughts on this. this would be very helpful, when deploying in a serverless environment (ie gcp cloudrun)

  5. akshay-joshi
    added this to Ready for Sprint Featureson Sep 20, 2022
  6. akshay-joshi
    added
    EDB Sprint 127
    and removed
    Ready
    on Sep 26, 2022
  7. akshay-joshi
    added this to Current Sprint (213)on Sep 28, 2022
  8. akshay-joshi
    self-assigned this
    on Sep 28, 2022
  9. akshay-joshi
    moved this to 🏗 In Progress in Current Sprint (213)on Sep 28, 2022
  10. akshay-joshi
    removed this from Ready for Sprint Featureson Oct 7, 2022
  11. akshay-joshi
    added
    EDB Sprint 128
    and removed
    EDB Sprint 127
    on Oct 12, 2022
  12. akshay-joshi
    added 5 commits that reference this issue on Oct 18, 2022

    Added support for storing configurations of pgAdmin in an external da…

    4c94002

    Added support for storing configurations of pgAdmin in an external da…

    f005990

    Added support for storing configurations of pgAdmin in an external da…

    4006d70

    Added support for storing configurations of pgAdmin in an external da…

    606041f

    Added support for storing configurations of pgAdmin in an external da…

    e17c50d
  13. akshay-joshi
    assigned
    FaharAbbasRizvi
    and unassigned
    akshay-joshi
    on Oct 20, 2022
  14. akshay-joshi
    moved this from 🏗 In Progress to In Testing in Current Sprint (213)on Oct 20, 2022
  15. akshay-joshi
    added this to the 6.16 milestone on Oct 20, 2022
  16. akshay-joshi
    added a commit that references this issue on Oct 21, 2022

    Added support for storing configurations of pgAdmin in an external da…

    8e402e0
  17. FaharAbbasRizvi commented on Nov 1, 2022

    @FaharAbbasRizvi
    FaharAbbasRizvi
    on Nov 1, 2022
    Contributor
    More actions

    This feature is thoroughly tested

    Here are the permutations:

    External database tested on Windows 64:

    1. pgadmin4 6.14>pgadmin4 6.15 with latest snapshot build
    2. pgadmin4 6.9>pgadmin4 6.15 with latest snapshot build
    3. pgadmin4 4.30 >pgadmin4 5.7 > pgadmin4 6.9> pgadmin4 6.15 with latest snapshot build
    4. Fresh installation mode on Windows 64

    Linux 64

    1. The fresh mode of pgadmin4 6.15(Latest snapshot build)rpm on the Desktop and the server mode
    2. Upgrade scenario on the Desktop and the server mode

    MAC OS X

    Fresh and Update scenario

    pgadmin4 with CONFIG_DATABASE_URI:

    Performed testing with CONFIG_DATABASE_URI on Linux and Windows with fresh and upgrade scenarios.

  18. FaharAbbasRizvi
    closed this as completedon Nov 1, 2022
  19. FaharAbbasRizvi
    moved this from In Testing to ✅ Done in Current Sprint (213)on Nov 1, 2022
  20. adityatoshniwal commented on Nov 1, 2022

    @adityatoshniwal
    adityatoshniwal
    on Nov 1, 2022
    Contributor
    More actions

    @FaharAbbasRizvi Can you please test this scenario as well:

    1. Install v5.3 or or below in server mode.
    2. Add some users in user management.
    3. Upgrade to the latest.

    Changes were done to add a new unique column in the users table, need to test if working fine.

  21. FaharAbbasRizvi commented on Nov 1, 2022

    @FaharAbbasRizvi
    FaharAbbasRizvi
    on Nov 1, 2022
    Contributor
    More actions

    The Above message scenario is working fine and Python Package Tested with 5.3 and upgrade to the latest snapshot build successfully:

    Tested on Ubuntu 18.04

    Reacted by Aditya Toshniwal
  22. akshay-joshi
    removed this from Current Sprint (213)on Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @FaharAbbasRizvi
    FaharAbbasRizvi

Labels

Feature

Type

No type

Projects

No projects

    Milestone

    • 6.16

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.