Skip to content
New issue

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

Config file watcher issue in 0.12.2 #1469

Closed
vhadianto opened this issue Feb 17, 2022 · 0 comments
Closed

Config file watcher issue in 0.12.2 #1469

vhadianto opened this issue Feb 17, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@vhadianto
Copy link

Describe the bug

Steampipe Service 0.12.2 (might exist in earlier versions too) does not detect new and updated config file.

Steampipe version (steampipe -v)
Example: v0.12.2

To reproduce

  1. Empty ~/.steampipe/config configuration and just leave 1 connection there. Let's say a Digital Ocean

  2. Start Steampipe as a service.

  3. Use pgcli/psql to connect and run the following query

select 
  ns.nspname as table_schema, 
  cls.relname as table_name,
  pg_catalog.obj_description(attr.attrelid) as table_description,
  attr.attname as column_name,
  pg_catalog.col_description(attr.attrelid, attr.attnum) as column_description,
  trim(leading '_' from tp.typname) as data_type
from 
  pg_catalog.pg_attribute as attr
  join pg_catalog.pg_class as cls on cls.oid = attr.attrelid
  join pg_catalog.pg_namespace as ns on ns.oid = cls.relnamespace
  join pg_catalog.pg_type as tp on tp.typelem = attr.atttypid
where
  ns.nspname !~ 'information_schema|pg_catalog|pg_temp|pg_toast|^pg_catalog|^pg_temp|^pg_toast|steampipe_command|public'
  and not attr.attisdropped 
  and attr.attnum > 0
order by 
  ns.nspname,
  cls.relname,
  attr.attnum;

This shows all the schema and the tables in Steampipe DB

  1. Don't close pgcli, move a new connection config file to ~/.steampipe/config let's say it's Hackernews

  2. Run the same query in step 3 - notice that the Hackernews schema and tables don't exist

  3. Now in a new terminal run "steampipe query"

  4. Back in pgcli run the same query in step 3 and notice that we now have the hackernews schema and tables

@vhadianto vhadianto added the bug Something isn't working label Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant