Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Add indexes to improve performance: ERROR: relation "admissions" does not exist #252
Comments
herroannekim
commented
Jul 6, 2017
|
Further, when I try to skip this step and actually query mimic with |
|
Your first error looks like an issue regarding the schema. That is you may have built the tables on a different schema. Double check to confirm that you've built all the tables on the The second issue implies you're using a user with insufficient privileges. You need to grant access to the schema to whatever user you are querying with, e.g. |
herroannekim
commented
Jul 10, 2017
|
How do I double check if the tables are built? Also, how can I check what my local sql environment's |
|
By default you will have the SQL user
You can change the search_path using the command Users are done entirely independent from this and can be checked using You might find a tutorial on postgres useful, e.g. https://www.tutorialspoint.com/postgresql/postgresql_schema.htm |
herroannekim
commented
Jul 11, 2017
•
|
Thank you. The postgres information was very helpful, but I'm still getting errors
|
|
My guess is you are logged in as user |
herroannekim
commented
Jul 12, 2017
|
@tompollard helped me out by granting superuser privileges to the mimic user and I believe we also changed something about the schema. Thanks! |
|
Thanks @herroannekim. @alistairewj it seems there may be something up with the build scripts and/or the tutorials, so I'll leave this issue open. |
|
I tidied up the build scripts. I rebuilt the database successfully on my Ubuntu machine last night so hopefully this issue is resolved. Also tidied up the readme a bit. |
herroannekim commentedJul 6, 2017
I'm adding indexes/indices to improve performance. I used
psql 'dbname=mimic user=mimic options=--search_path=mimiciii' -f postgres_add_indexes.sqlwhile I was in the working directorybuildmimic/postgres, I got the error:psql:postgres_add_indexes.sql:19: NOTICE: index "admissions_idx01" does not exist, skipping DROP INDEX psql:postgres_add_indexes.sql:21: ERROR: relation "admissions" does not existHow should I troubleshoot?