Skip to content

the code contains hard-coded references to the public schema #294

@olliebun

Description

@olliebun

Hi there! Here at GreenSync we're big fans of que-rb.

We're working on a complex system where we want to use different postgres database schemas to manage different components of the system within a single database.

Unfortunately, it looks like there are a few hard-coded references to public. in the code:

https://github.com/que-rb/que/search?q=public.

This means that even if we pass que-rb a connection that has a schema other than default configured, there are a mixture of references to tables with and without the hard-coded public. prefix - so it just won't work.

If you're open to addressing this, we'd be happy to open a PR.

Some possible approaches:

  • support telling que what schema to prefix on the tables
  • never prefix the tables & rely on whatever schema has been set on the connection passed to que

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions