Giter Club home page Giter Club logo

Comments (8)

rjuju avatar rjuju commented on June 28, 2024

Hi,

Thanks a lot! I also needed something to validate complex extension upgrades, so I'm happy it helps other people too.

I agree with you, the current behavior is to assume that an opfamily, identified by schema + opfamily name is unique, while it should only be unique for a given access method too, thus the invalid output you're getting. I will fix that as soon as I can.

To recreate a test, I think that you need to update (rename as you did in your extension) the row with the lowest ctid, so the next seq scan will return the rows in a different order.

from pg_validate_extupgrade.

rjuju avatar rjuju commented on June 28, 2024

I just pushed at fix at 0bbacb3, could you check to make sure it also fixes the problem for you?

FTR I was able to create a small reproducer, but I needed to use 3 operator families and not just 2.

from pg_validate_extupgrade.

zachasme avatar zachasme commented on June 28, 2024

Hi, @rjuju. That was fast, and it did fix the problem for me! 👍🏿 Thanks again for this excellent tool.

from pg_validate_extupgrade.

rjuju avatar rjuju commented on June 28, 2024

Great news, thanks a lot!

from pg_validate_extupgrade.

zachasme avatar zachasme commented on June 28, 2024

Errors have begun popping up again, no longer for opfamilies but instead for opclasses:

- mismatch found for Extension h3:
  - in opclasses:
    installed and upgraded both have 2 OpClass but some mismatch in them:
      - mismatch found for OpClass public.h3index_ops:
        - in opcmethod:
          - btree
          + hash

Is it possible that adding || ' USING ' || am.amname" is also required for opclass?

from pg_validate_extupgrade.

rjuju avatar rjuju commented on June 28, 2024

Good catch again, thanks a lot for the report!

Commit 8d23a3e should fix the issue.

from pg_validate_extupgrade.

zachasme avatar zachasme commented on June 28, 2024

Yup, that fixed it, thanks @rjuju!

from pg_validate_extupgrade.

rjuju avatar rjuju commented on June 28, 2024

Great, thanks for the confirmation!

from pg_validate_extupgrade.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.