feat: extend context timeout to 1 minute for database queries in mssql.go and postgres.go

This commit is contained in:
2026-04-16 13:19:46 -05:00
parent b418ded78b
commit 39c0d99502
2 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ func (ta *PostgresTableAnalyzer) QueryColumnTypes(
ctx context.Context,
tableInfo config.TableInfo,
) ([]models.ColumnType, error) {
localCtx, cancel := context.WithTimeout(ctx, 20*time.Second)
localCtx, cancel := context.WithTimeout(ctx, 1*time.Minute)
defer cancel()
rows, err := ta.db.Query(localCtx, postgresColumnMetadataQuery, tableInfo.Schema, tableInfo.Table)