Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate prefix from table name if using schema besides public #10555

Open
banool opened this issue Oct 3, 2024 · 0 comments
Open

Eliminate prefix from table name if using schema besides public #10555

banool opened this issue Oct 3, 2024 · 0 comments
Labels
c/server Related to server k/enhancement New feature or improve an existing feature v2-engine

Comments

@banool
Copy link

banool commented Oct 3, 2024

Is your proposal related to a problem?

Using a schema besides public results in all tables having a prefix, like myschema_mytable.

Describe the solution you'd like

If you connect to the database specifying a search_path, the first schema should be prefixless. For example:

postgresql://myuser:[email protected]:5432/mydatabase?options=-c%20search_path%3Dprocessor

In this case, any table from the processor schema should have no prefix.

I see in this response to #3606 that the proposed solution is to use Hasura DDN. However DDN is lacking many features I need at the moment: https://hasura.io/docs/3.0/upgrade/feature-availability/api-features/. I also can't find any docs describing how to migrate from v2 to DDN in terms of just the metadata file.

I think #3606 is sort of related to this issue, but what they're asking for there is much more complex. I just want a way to omit the schema prefix on table names.

Describe alternatives you've considered

None that I'm aware, I think the prefix is unavoidable.

@banool banool added the k/enhancement New feature or improve an existing feature label Oct 3, 2024
@manasag manasag added c/server Related to server v2 and removed v2 labels Oct 15, 2024
@danieljharvey danieljharvey added the v2-engine label Oct 22, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/server Related to server k/enhancement New feature or improve an existing feature v2-engine
Projects
None yet
Development

No branches or pull requests

3 participants