PostgreSQL table names not quoted: UndefinedTable
relation "public.whatever" does not exist for table "Whatever"
#2128
Labels
UndefinedTable
relation "public.whatever" does not exist for table "Whatever"
#2128
Small description
Connected to a local PostgreSQL database.
PgTablesSheet
looks good. Press "Enter" on any table that is not exclusively lowercase, get the error in the title.Try with another table, and always get
InFailedSqlTransaction: current transaction is aborted
Expected result
I should see the table I selected
Actual result with screenshot

If you get an unexpected error, please include the full stack trace that you get with

Ctrl-E
.As you can see from the stack trace, the table identifier is not quoted. In PostgreSQL,
public.HelloWorld
is interpreted aspublic.helloworld
. If the actual table name ispublic.HelloWorld
, you have to use quotes. This applies for columns, too. You can solve this by always quoting identifiers.Additional context
Please include the version of VisiData and Python.
VisiData 2.11,1, Python 3.10.4
The text was updated successfully, but these errors were encountered: