Skip to content

Only validate the first schema in db-schemas #5080

Description

@steve-chavez

Problem

Adding schemas in db-schemas and then dropping them database side makes postgREST inoperative, it won't serve any requests.

After much discussion on #4364 and #5042, it seems we're stuck with db-schemas for some cases.

Solution

I suggest only validating the first schema in db-schemas, since it will be picked as the "default schema". The rest don't have to be validated.

I also believe this goes in line with recent changes about making the schema cache "best effort" (#4869)..

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaNeeds discussion to become an enhancement, not ready for implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions