Warning:
failed to start plugin 'hub.steampipe.io/plugins/jreyesr/postgres@latest': failed to plugin initialise plugin 'steampipe-plugin-postgres': TableMapFunc 'PluginTables' had unhandled error: interface conversion: interface is nil, not hclog.LoggerUpdatedConnections: true
I figured this must be a connection string problem, but I'm not seeing it.
My .spc:
connection "postgres" {
plugin = "jreyesr/postgres"
# Write a connection string, in the form that is expected by the pgx package:
# https://pkg.go.dev/github.com/jackc/pgx/v5#hdr-Establishing_a_Connection
# Required
connection_string = "postgres://jon:jon@localhost:5432/postgres"
# The remote DB's schema that this plugin will expose
# If you leave this unset, it'll default to `public`
# schema = "public"
}
Sorry, my bad! It's not the connection string, it's that the default schema is causing a null pointer. I didn't notice it because my .spc files do have a schema set.
I figured this must be a connection string problem, but I'm not seeing it.
My .spc:
This works:
psql -d postgres -U jon -W
I instrumented
GetConfig
like so:The output:
I feel like I'm missing something really dumb?