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: Cannot Produce Difference Script for Index Definition with Where Condition · Issue #8072 · pgadmin-org/pgadmin4

Schema Diff Tool: Cannot Produce Difference Script for Index Definition with Where Condition #8072

New issue
Copy link
New issue
Copy link
Closed
Closed
Schema Diff Tool: Cannot Produce Difference Script for Index Definition with Where Condition#8072
Copy link
Assignees
anilsahoo20
Labels
Bug
Milestone
9.0

Description

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

Describe the bug

Schema Diff Tool cannot produce difference script for index definition with "where" condition. The tool identifies the difference as "Different" but only cannot produce the difference script.

To Reproduce

Steps to reproduce the behavior:

  1. Create 2 database instances and connect them via pgadmin.
  2. Run the script below on both instances (create schema & create an example table):
   CREATE SCHEMA IF NOT EXISTS test;
   CREATE TABLE IF NOT EXISTS test.test_table (
      id bigint NOT NULL,
      del boolean NOT NULL DEFAULT false,
      ver integer NOT NULL DEFAULT 0,
      name character varying(10)[] NOT NULL,
      status character varying(10)[] NOT NULL,
      CONSTRAINT pk_test_table PRIMARY KEY (id)
);
  1. Run the script on Instance 1 (create an index with no where condition):
CREATE UNIQUE INDEX IF NOT EXISTS udx_test_table_01 ON test.test_table USING btree (name ASC, status ASC);
  1. Run the script on Instance 2 (create an index with where condition):
CREATE UNIQUE INDEX IF NOT EXISTS udx_test_table_01 ON test.test_table USING btree (name ASC, status ASC)
    WHERE del = false;
  1. Open Schema Tool and compare test schemas on both DB instances.
  2. Click on 'test_table' in Objects view and see source, target & difference scripts.

Expected behavior

Difference section shall show how to equalize both schemas. (e.g. DROP index and create index from source)

Screenshots
image

Reacted by zz

Activity

  1. canayozel
    added
    Bug
    on Oct 27, 2024
  2. pravesh-sharma
    added this to Not Refinedand Ready for Sprint Bugs and removed this from Not Refinedon Oct 28, 2024
  3. akshay-joshi
    added
    EDB Sprint 182
    on Dec 4, 2024
  4. akshay-joshi
    added this to Current Sprint (213) and removed this from Ready for Sprint Bugson Dec 4, 2024
  5. akshay-joshi
    moved this to 🆕 New in Current Sprint (213)on Dec 4, 2024
  6. akshay-joshi
    self-assigned this
    on Dec 18, 2024
  7. akshay-joshi
    added
    EDB Sprint 183
    and removed
    EDB Sprint 182
    on Dec 18, 2024
  8. akshay-joshi
    moved this from 🆕 New to 🏗 In Progress in Current Sprint (213)on Dec 19, 2024
  9. akshay-joshi
    added this to the 9.0 milestone on Dec 19, 2024
  10. akshay-joshi
    moved this from 🏗 In Progress to In Testing in Current Sprint (213)on Dec 19, 2024
  11. akshay-joshi
    removed their assignment
    on Dec 19, 2024
  12. akshay-joshi
    added a commit that references this issue on Dec 19, 2024

    Fixed an issue where Schema Diff not produce difference script for In…

    9cd8492
  13. anilsahoo20
    self-assigned this
    on Dec 31, 2024
  14. anilsahoo20 commented on Dec 31, 2024

    @anilsahoo20
    anilsahoo20
    on Dec 31, 2024
    Contributor
    More actions

    Tested and verified on snapshot build: https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2024-12-21/
    Package: arm64
    Environment: macOs Sonoma 14.7.1

  15. anilsahoo20
    closed this as completedon Dec 31, 2024
  16. anilsahoo20
    moved this from In Testing to ✅ Done in Current Sprint (213)on Dec 31, 2024
  17. akshay-joshi
    removed this from Current Sprint (213)on Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @anilsahoo20
    anilsahoo20

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 9.0

    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.