@@ -125,7 +125,7 @@ func goFdwGetPathKeys(state *C.FdwPlanState) *C.List {
125125 // get the connection name - this is the namespace (i.e. the local schema)
126126 opts ["connection" ] = getNamespace (rel )
127127
128- if opts ["connection" ] == constants .CommandSchema {
128+ if opts ["connection" ] == constants .InternalSchema {
129129 return result
130130 }
131131
@@ -389,7 +389,7 @@ func goFdwImportForeignSchema(stmt *C.ImportForeignSchemaStmt, serverOid C.Oid)
389389 }
390390 }()
391391
392- log .Printf ("[WARN ] goFdwImportForeignSchema remote '%s' local '%s'\n " , C .GoString (stmt .remote_schema ), C .GoString (stmt .local_schema ))
392+ log .Printf ("[INFO ] goFdwImportForeignSchema remote '%s' local '%s'\n " , C .GoString (stmt .remote_schema ), C .GoString (stmt .local_schema ))
393393 // get the plugin hub,
394394 pluginHub , err := hub .GetHub ()
395395 if err != nil {
@@ -402,9 +402,10 @@ func goFdwImportForeignSchema(stmt *C.ImportForeignSchemaStmt, serverOid C.Oid)
402402 localSchema := C .GoString (stmt .local_schema )
403403
404404 // special handling for the command schema
405- if remoteSchema == constants .CommandSchema {
406- commandSchema := pluginHub .GetCommandSchema ()
407- sql := SchemaToSql (commandSchema , stmt , serverOid )
405+ if remoteSchema == constants .InternalSchema {
406+ log .Printf ("[INFO] importing setting tables into steampipe_internal schema" )
407+ settingsSchema := pluginHub .GetSettingsSchema ()
408+ sql := SchemaToSql (settingsSchema , stmt , serverOid )
408409 return sql
409410 }
410411
@@ -435,7 +436,7 @@ func goFdwExecForeignInsert(estate *C.EState, rinfo *C.ResultRelInfo, slot *C.Tu
435436 defer C .RelationClose (rel )
436437 connection := getNamespace (rel )
437438 // if this is a command insert, handle it
438- if connection == constants .CommandSchema {
439+ if connection == constants .InternalSchema {
439440 return handleCommandInsert (rinfo , slot , rel )
440441 }
441442
0 commit comments