Giter VIP home page Giter VIP logo

Comments (7)

PierreDucroquet avatar PierreDucroquet commented on June 28, 2024

I have tested with the PG master regression test. Several tests failed because of the NOTICE and WARNING in the extension, disabling them fixed the 'regressions'.
Does it comfort you? :)

from pg-magicplan.

anayrat avatar anayrat commented on June 28, 2024

Well, did you force magic plan? :)

from pg-magicplan.

PierreDucroquet avatar PierreDucroquet commented on June 28, 2024

I did not have to, it triggered for some plans, not for others… so it seemed good to me.

from pg-magicplan.

anayrat avatar anayrat commented on June 28, 2024

So it may have not triggered for some plan, and so not tested? The risk is some day it trigger for not tested case?

from pg-magicplan.

PierreDucroquet avatar PierreDucroquet commented on June 28, 2024

It can not trigger for a request that has no EXISTS subquery…

from pg-magicplan.

anayrat avatar anayrat commented on June 28, 2024

Tell me if I am wrong how pg-magicplan works. I understand when it sees a query with EXISTS subquery it plans two statements, one with original query, one with OFFSET 0 injected. Then it compare cost and choose to execute the cheapest one.

As we can't know early which plan it will choose, we can't know how PG will behave with OFFSET 0 injected in regression tests. Sometime it will use it sometime no... That's why I propose to force plan with OFFSET 0 in all circumstances for the tests only.

from pg-magicplan.

PierreDucroquet avatar PierreDucroquet commented on June 28, 2024

No I can't. There may be several possible places to inject offset 0, there may be no sublink...

from pg-magicplan.

Related Issues (2)

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.