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 — Schema Diff Tool Creates False Positive Diff When Privilege Orders Are Different Between 2 DB Instance · Issue #8032 · pgadmin-org/pgadmin4

Schema Diff Tool Creates False Positive Diff When Privilege Orders Are Different Between 2 DB Instance #8032

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Schema Diff Tool Creates False Positive Diff When Privilege Orders Are Different Between 2 DB Instance#8032
Copy link
Assignees
Alex-MarquesBR
Labels
Bug
Milestone
9.5

Description

@canayozel
canayozel
opened on Oct 11, 2024
Issue body actions

Describe the bug

Schema Diff Tool creates a false positive difference (both table grants are exactly the same) when comparing grants due to order of privileges.

To Reproduce

  1. Create the same schema and same table with same grants on 2 different database instances. (grant all to postgres)
  2. Go to Schema Diff tool, compare the newly created schemas
  3. See the schema diff tool shows diff even though there are not

NOTE 1: Reproducing the behaviour is not simple as it does not happen on all tables. (only for some)
NOTE 2: Revoke all and grant all does not fix the issue.
NOTE 3: In Schema diff SQL view the text source and target DDL are exactly the same.

To truly reproduce the example state as below between databases should be created.
Screenshots are captured, going to the properties to the table and going to security tab.

Database Instance 1 -> Grants on the table (see privileges -> axrtDdw)
image

Database Instance 2 -> Grants on the table (see privileges -> daxrtDw)
image

Expected behavior

When table privileges are exactly the same in 2 different instances (e.g [axrtDdw] and [daxrtDw]) the Schema Diff tool shall not show any differences. Privileges shall be compared as a set compare as they are set of individual privileges.

  • Version: 8.12 container mode on browser

Activity

Next
  1. canayozel
    added
    Bug
    on Oct 11, 2024
  2. akshay-joshi
    added this to Not Refinedon Oct 14, 2024
  3. pravesh-sharma
    added this to Ready for Sprint Bugs and removed this from Not Refinedon Oct 28, 2024
  4. akshay-joshi
    added
    EDB Sprint 193
    on May 14, 2025
  5. akshay-joshi
    self-assigned this
    on May 14, 2025
  6. akshay-joshi
    added this to Current Sprint (213) and removed this from Ready for Sprint Bugson May 14, 2025
  7. akshay-joshi
    moved this to 🏗 In Progress in Current Sprint (213)on May 14, 2025
  8. akshay-joshi
    added
    EDB Sprint 194
    and removed
    EDB Sprint 193
    on May 21, 2025
  9. akshay-joshi commented on May 21, 2025

    @akshay-joshi
    akshay-joshi
    on May 21, 2025
    Contributor
    More actions

    Hi @canayozel

    I’m unable to reproduce the issue on the latest version of pgAdmin 4 (v9.3). We have addressed several privilege-related issues in this commit.

    Could you please verify the issue on the latest version of pgAdmin 4? If it is resolved, kindly close the ticket.

  10. akshay-joshi
    assigned
    canayozel
    and unassigned
    akshay-joshi
    on May 21, 2025
  11. akshay-joshi
    removed
    EDB Sprint 194
    on May 21, 2025
  12. 32 remaining items

  13. akshay-joshi
    added
    EDB Sprint 195
    and removed
    EDB Sprint 194
    on Jun 4, 2025
  14. akshay-joshi
    assigned
    pravesh-sharma
    and
    anilsahoo20
    and unassigned
    pravesh-sharma
    and
    anilsahoo20
    on Jun 5, 2025
  15. akshay-joshi
    added this to Not Refined and removed this from Current Sprint (213)on Jun 13, 2025
  16. akshay-joshi
    removed
    EDB Sprint 195
    on Jun 18, 2025
  17. akshay-joshi commented on Jun 18, 2025

    @akshay-joshi
    akshay-joshi
    on Jun 18, 2025
    Contributor
    More actions

    @Alex-MarquesBR

    Can you please provide the complete DDL of the source and target tables? If not reproducible, then we will close this issue as the original problem is fixed in v9.5

  18. akshay-joshi
    assigned
    Alex-MarquesBR
    on Jun 23, 2025
  19. akshay-joshi commented on Jun 27, 2025

    @akshay-joshi
    akshay-joshi
    on Jun 27, 2025
    Contributor
    More actions

    No response from the author, hence closing it.

  20. akshay-joshi
    closed this as not plannedon Jun 27, 2025
  21. github-project-automation
    moved this to Done in Not Refinedon Jun 27, 2025
  22. akshay-joshi
    removed this from Not Refinedon Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Alex-MarquesBR
    Alex-MarquesBR

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 9.5

    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.