Coder Social home page Coder Social logo

Any interest in porting to cockroach about pq HOT 3 CLOSED

retr0h avatar retr0h commented on August 23, 2024
Any interest in porting to cockroach

from pq.

Comments (3)

retr0h avatar retr0h commented on August 23, 2024 2

I'll close this ticket as most of the functionality this module relies upon, does not exist yet in cockroach.

from pq.

stas avatar stas commented on August 23, 2024

CockroachDB is built to be largely compatible with PostgreSQL, meaning that software written to use PostgreSQL can sometimes (often!) be used with CockroachDB without changes.

This suggests a lot of stuff should be working out of the box, would you be kind to give it a try and suggest what's not working?

from pq.

retr0h avatar retr0h commented on August 23, 2024

Yeah, I have started going down that path, and unfortunately it looks like most of the stuff we care about is unimplemented.

psycopg2.errors.FeatureNotSupported: unimplemented: SKIP LOCKED lock wait policy is not supported
HINT:  You have attempted to use a feature that is not yet implemented.
See: https://github.com/cockroachdb/cockroach/issues/40476

Indexes would need to change to support the alternative nulls last

create index if not exists priority_idx_%(name)s on %(name)s
    (schedule_at nulls first, (CASE WHEN expected_at IS NULL THEN 1 ELSE 0 END), q_name)
    where dequeued_at is null
          and q_name = '%(name)s';
DETAIL:  source SQL:
create index if not exists priority_idx_queue on queue
    (schedule_at nulls first, (CASE WHEN expected_at IS NULL THEN 1 ELSE 0 END), q_name)
                                                                               ^
HINT:  You have attempted to use a feature that is not yet implemented.
See: https://github.com/cockroachdb/cockroach/issues/9682

from pq.

Related Issues (20)

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.