Skip to content

Relation "xyz" does not exist #885

Answered by lovasoa
chambrickShS asked this question in Q&A
Discussion options

You must be logged in to vote

👋 Hello and welcome to SQLPage!

The “relation does not exist” error means that you're successfully connected to postgres, but are trying to query a table that does not exist.

With SQLite, naming isn’t an issue, but in Postgres unquoted identifiers are automatically lower-cased. If your table was created with upper-case letters or special characters, you need to quote them.

Also, verify that the connection URL is actually targeting the database and schema where your table exists (typically the “public” schema).

Adjusting your table naming or explicitly quoting identifiers should resolve the error.

To spot the difference, you can run the following queries, one at a time, from dbeaver then f…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@chambrickShS
Comment options

@lovasoa
Comment options

Answer selected by chambrickShS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants