/
Error while retrieving the data using SQL for Confluence
Error while retrieving the data using SQL for Confluence
Problem statement
An error occurs while retrieving data from the table under a public schema in PostgreSQL, using the SQL macro.
Sample Error message
org.postgresql.util.PSQLException: ERROR: relation "inventory" doesnot exist Position: 15
The ideal scenario for the above error is: when there is no table exists with the given name (inventory in this case).
There is another case where you get this error: when the given table is in public schema.
Environment
Application | Confluence |
---|---|
Version | Server 6.15.4 |
App Version | 10.0.0 |
Database Type | PostgreSql |
Cause
When you want to get the data from a table which is in a public schema in PostgreSQL, it needs to be mentioned in the SQL select statement as below:
Solution
SELECT * FROM public."inventory" ;
Sample Result
Data from the inventory table is displayed as follows:
S. no | Table | Data |
---|---|---|
1 | Test-Table | Yes |
2 | Test-Data | No |
, multiple selections available,
Related content
SQL for Confluence data source configuration - 8.x
SQL for Confluence data source configuration - 8.x
More like this
SQL for Confluence datasource configuration
SQL for Confluence datasource configuration
More like this
Troubleshooting the user permissions issue in the SQL Query Macro using the SQL for Confluence App
Troubleshooting the user permissions issue in the SQL Query Macro using the SQL for Confluence App
More like this
How to configure PostgreSQL data source profile in the SQL for Confluence app.
How to configure PostgreSQL data source profile in the SQL for Confluence app.
More like this
How to resolve a Generic SQL exception - 10.x
How to resolve a Generic SQL exception - 10.x
More like this
Generic SQL Exception
Generic SQL Exception
More like this