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 — Multi-column gist index is displayed in wrong order · Issue #8430 · pgadmin-org/pgadmin4

Multi-column gist index is displayed in wrong order #8430

New issue
Copy link
New issue
Copy link
Closed
Closed
Multi-column gist index is displayed in wrong order#8430
Copy link
Assignees
yogeshmahajan-1903
Labels
Bug
Milestone
9.1

Description

@ab-pm
ab-pm
opened on Feb 9, 2025
Issue body actions

I'm using a multi-column GiST index exclusion constraint. It was created with a specific order of columns, however the "SQL" view on the table or constraint show them in the wrong order.

To Reproduce

CREATE EXTENSION IF NOT EXISTS btree_gist;
CREATE TABLE a_b_relation (
    a integer NOT NULL,
    b integer NOT NULL,
    valid tstzrange NOT NULL,
    CONSTRAINT a_b_excl EXCLUDE USING gist (
        a WITH =,
        b WITH =,
        valid WITH &&
    )
);

Then visit the "SQL" tab for the public.a_b_relation table. It'll show

CREATE TABLE IF NOT EXISTS public.a_b_relation
(
    a integer NOT NULL,
    b integer NOT NULL,
    valid tstzrange NOT NULL,
    CONSTRAINT a_b_excl EXCLUDE USING gist (
        valid WITH &&,
        b WITH =,
        a WITH =)

)

Similarly, the "SQL" view of the constraint itself has the same; and in the "Properties"->"Constraints"->"Exclude" dialog the "Columns/Expressions" table column also lists them in the wrong order.

Expected behavior

It should display the exclusion constraint with the rows in the same order they were created in. Notice that psql gets it right:

example=# \d a_b_relation 
             Table "public.a_b_relation"
 Column |   Type    | Collation | Nullable | Default 
--------+-----------+-----------+----------+---------
 a      | integer   |           | not null | 
 b      | integer   |           | not null | 
 valid  | tstzrange |           | not null | 
Indexes:
    "a_b_excl" EXCLUDE USING gist (a WITH =, b WITH =, valid WITH &&)

Environment:

  • OS: Ubuntu
  • Version: 8.14
  • Mode: Desktop

Additional context

I found the thread bugfix: dlgIndex column order from 2009 on the mailing list which might be related, but I guess this is about ordering (ASC, DESC etc) in a column, not the order amongst columns.

Activity

  1. ab-pm
    added
    Bug
    on Feb 9, 2025
  2. akshay-joshi
    added this to Not Refinedon Feb 10, 2025
  3. akshay-joshi
    added
    EDB Sprint 187
    on Feb 12, 2025
  4. akshay-joshi
    added this to Current Sprint (213) and removed this from Not Refinedon Feb 12, 2025
  5. akshay-joshi
    moved this to 🆕 New in Current Sprint (213)on Feb 12, 2025
  6. pravesh-sharma
    self-assigned this
    on Feb 12, 2025
  7. pravesh-sharma
    moved this from 🆕 New to 🏗 In Progress in Current Sprint (213)on Feb 12, 2025
  8. pravesh-sharma
    added 2 commits that reference this issue on Feb 12, 2025

    Fixed an issue where the column order displayed was incorrect for exc…

    569c359

    Fixed an issue where the column order displayed was incorrect for exc…

    200954f
  9. pravesh-sharma
    moved this from 🏗 In Progress to In Review in Current Sprint (213)on Feb 13, 2025
  10. akshay-joshi
    added a commit that references this issue on Feb 18, 2025

    Fixed an issue where the column order displayed was incorrect for exc…

    85290d4
  11. akshay-joshi
    moved this from In Review to In Testing in Current Sprint (213)on Feb 18, 2025
  12. akshay-joshi
    unassigned
    pravesh-sharma
    on Feb 18, 2025
  13. akshay-joshi
    added this to the 9.1 milestone on Feb 18, 2025
  14. yogeshmahajan-1903
    self-assigned this
    on Feb 25, 2025
  15. yogeshmahajan-1903 commented on Feb 25, 2025

    @yogeshmahajan-1903
    yogeshmahajan-1903
    on Feb 25, 2025
    Contributor
    More actions

    Working fine.

    Image
    Reacted by Andreas Bergmaier
  16. yogeshmahajan-1903
    closed this as completedon Feb 25, 2025
  17. yogeshmahajan-1903
    moved this from In Testing to ✅ Done in Current Sprint (213)on Feb 25, 2025
  18. akshay-joshi
    removed this from Current Sprint (213)on Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @yogeshmahajan-1903
    yogeshmahajan-1903

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 9.1

    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.