Skip to content

test(load): reduce num of tables in errors loadtest#4844

Merged
steve-chavez merged 1 commit intoPostgREST:mainfrom
taimoorzaeem:loadtest/errors/decrease-num-of-tables
Apr 26, 2026
Merged

test(load): reduce num of tables in errors loadtest#4844
steve-chavez merged 1 commit intoPostgREST:mainfrom
taimoorzaeem:loadtest/errors/decrease-num-of-tables

Conversation

@taimoorzaeem
Copy link
Copy Markdown
Member

@taimoorzaeem taimoorzaeem commented Apr 25, 2026

The table not found error only generates hint when the total number of tables in a schema are less than 500.

Similar to #4839, this also should be updated.

postgrest-with-pg-18 -f test/load/errors.sql postgrest-run
curl -i localhost:3000/actoxs?actor=eq.1
HTTP/1.1 404 Not Found
Date: Sat, 25 Apr 2026 07:23:54 GMT
Server: postgrest/15 (pre-release)
Content-Type: application/json; charset=utf-8
Content-Length: 156
Proxy-Status: PostgREST; error=PGRST205

{
  "code":"PGRST205",
  "details":null,
  "hint":"Perhaps you meant the table 'test.actors'",
  "message":"Could not find the table 'test.actoxs' in the schema cache"
}

The table not found error only generates hint when the total number of
tables in a schema are less than 500.

Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
Copy link
Copy Markdown
Member

@wolfgangwalther wolfgangwalther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff LGTM

@steve-chavez steve-chavez merged commit 3882919 into PostgREST:main Apr 26, 2026
24 checks passed
@taimoorzaeem taimoorzaeem deleted the loadtest/errors/decrease-num-of-tables branch April 27, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants