Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions redshift/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ func (c *Config) IsServerless(db *DBConnection) (bool, error) {

// Insuficcient privileges means we do not have access to this view ergo we run on Redshift classic
if isPqErrorWithCode(err, pgErrorCodeInsufficientPrivileges) {
_, err := db.Query("SELECT 1 FROM SVL_QUERY_SUMMARY")
// An error means we are running Multi-AZ Provisioned Redshift which behaves in some cases as serverless
if err != nil {
Comment thread
StevenKGER marked this conversation as resolved.
c.isServerless = true
return true, nil
}

c.isServerless = false
return false, nil
}
Expand Down
Loading