(stmt string)
| 647 | } |
| 648 | |
| 649 | func getIndexMethodType(stmt string) string { |
| 650 | re := regexp.MustCompile(`USING (\w+)`) |
| 651 | matches := re.FindStringSubmatch(stmt) |
| 652 | if len(matches) > 1 { |
| 653 | return matches[1] |
| 654 | } |
| 655 | return "btree" // Default for Redshift |
| 656 | } |
| 657 | |
| 658 | func (d *Driver) getVersion(ctx context.Context) (string, error) { |
| 659 | // Redshift doesn't support SHOW server_version to retrieve the clean version number. |