We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unlike Postgres, the tables and columns views/tables are empty and don't list the schema of information_schema itself.
tables
columns
information_schema
$ echo "CREATE TABLE x (a int); SELECT * FROM information_schema.schemata; SELECT DISTINCT table_name FROM information_schema.tables; SELECT DISTINCT table_name FROM information_schema.columns;" | build/debug/duckdb ┌──────────────┬────────────────────┬──────────────┬───────────────────────────────┬──────────────────────────────┬────────────────────────────┬──────────┐ │ catalog_name │ schema_name │ schema_owner │ default_character_set_catalog │ default_character_set_schema │ default_character_set_name │ sql_path │ ├──────────────┼────────────────────┼──────────────┼───────────────────────────────┼──────────────────────────────┼────────────────────────────┼──────────┤ │ │ pg_catalog │ duckdb │ │ │ │ │ │ │ information_schema │ duckdb │ │ │ │ │ │ │ main │ duckdb │ │ │ │ │ │ │ temp │ duckdb │ │ │ │ │ └──────────────┴────────────────────┴──────────────┴───────────────────────────────┴──────────────────────────────┴────────────────────────────┴──────────┘ ┌────────────┐ │ table_name │ ├────────────┤ │ x │ └────────────┘ ┌────────────┐ │ table_name │ ├────────────┤ │ x │ └────────────┘
Have you tried this on the latest master branch?
master
Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered:
With Postgres:
$ echo "SELECT COUNT(*) FROM information_schema.columns WHERE lower(table_schema) = 'information_schema';" | psql count ------- 696 (1 row)
Sorry, something went wrong.
As a workaround, you can use the duckdb_% table functions. See:
https://duckdb.org/docs/sql/duckdb_table_functions
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stale for 30 days with no activity.
No branches or pull requests
What happens?
Unlike Postgres, the
tables
andcolumns
views/tables are empty and don't list the schema ofinformation_schema
itself.To Reproduce
Environment (please complete the following information):
Before Submitting
Have you tried this on the latest
master
branch?Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: