We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d4a4de2 + b0d0bb5 commit cd3f136Copy full SHA for cd3f136
1 file changed
redshift/config.go
@@ -79,6 +79,13 @@ func (c *Config) IsServerless(db *DBConnection) (bool, error) {
79
80
// Insuficcient privileges means we do not have access to this view ergo we run on Redshift classic
81
if isPqErrorWithCode(err, pgErrorCodeInsufficientPrivileges) {
82
+ _, err := db.Query("SELECT 1 FROM SVL_QUERY_SUMMARY")
83
+ // An error means we are running Multi-AZ Provisioned Redshift which behaves in some cases as serverless
84
+ if err != nil {
85
+ c.isServerless = true
86
+ return true, nil
87
+ }
88
+
89
c.isServerless = false
90
return false, nil
91
}
0 commit comments