You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// constraint
constraintRows, err := db.Query(`
SELECT
pc.conname AS name,
(CASE WHEN contype='t' THEN pg_get_triggerdef((SELECT oid FROM pg_trigger WHERE tgconstraint = pc.oid LIMIT 1))
ELSE pg_get_constraintdef(pc.oid)
END) AS def,
contype AS type
FROM pg_constraint AS pc
LEFT JOIN pg_stat_user_tables AS ps ON ps.relid = pc.conrelid
WHERE ps.relname = $1
AND ps.schemaname = $2
ORDER BY pc.conrelid, pc.conindid, pc.conname`, tableName, tableSchema)
defer constraintRows.Close()
if err != nil {
return errors.WithStack(err)
}
SELECT oid FROM pg_trigger WHERE tgconstraint = pc.oid LIMIT 1;
[42703][500310] [Amazon](500310) Invalid operation: column "tgconstraint" does not exist in pg_trigger; java.lang.RuntimeException: com.amazon.support.exceptions.ErrorException: [Amazon](500310) Invalid operation: column "tgconstraint" does not exist in pg_trigger;
The text was updated successfully, but these errors were encountered:
https://docs.aws.amazon.com/ja_jp/redshift/latest/dg/c_unsupported-postgresql-features.html
↑公式ドキュメントに記載の通り、AWS Redshiftにはトリガーがありません。
そのため、直近のバージョンのtblsを実行するとpanicが発生するようです。
/Users/watarukura/src/github.com/k1LoW/tbls/drivers/postgres/postgres.go:158
SELECT oid FROM pg_trigger WHERE tgconstraint = pc.oid LIMIT 1;
The text was updated successfully, but these errors were encountered: