Fix Postgres error "cached plan must not change result type" when dynamic plugin schema changes. Update interactive .inspect and autocomplete based on changes to connection config or dynamic schema updates. Closes #3184. Closes #3185

This commit is contained in:
kaidaguerre
2023-03-03 18:45:40 +00:00
committed by GitHub
parent a605025b72
commit 2171ce66ba
18 changed files with 217 additions and 60 deletions

View File

@@ -3,7 +3,6 @@ package query
import (
"context"
"fmt"
"github.com/spf13/viper"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/export"
@@ -109,9 +108,6 @@ func (i *InitData) init(parentCtx context.Context, args []string) {
i.Result.AddWarnings(errAndWarnings.Warnings...)
i.Workspace = w
// set max DB connections to 1
viper.Set(constants.ArgMaxParallel, 1)
statushooks.SetStatus(ctx, "Resolving arguments")
// convert the query or sql file arg into an array of executable queries - check names queries in the current workspace