You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is also in tidyverse/dplyr#1007 (because it comes up when using the tbl function). I'm mentioning it here because it seems like RPostgres is going to replace RPostgreSQL eventually and might be able to fix the problem.
RPostgreSQL doesn't return views when using dbListTables, which is unexpected for some users. RPostgres uses the same query:
select tablename from pg_tables where schemaname !='information_schema'and schemaname !='pg_catalog';
I'm not sure whether RPostgres should just return views along with the tables, or whether there should be a separate dbListViews function. But I feel like there should be some way to get at them without writing a raw query.
The following gets both views and "real" tables:
SELECT table_name FROMINFORMATION_SCHEMA.tablesWHERE table_schema = ANY (current_schemas(false));
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Activity
hadley commentedon Mar 30, 2015
I think it makes sense to have this on by default.
krlmlr commentedon Nov 27, 2017
dbListTables()now also includes views.github-actions commentedon Dec 8, 2020
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.