Support for Redshift? #361
Replies: 7 comments
-
Interesting. There is probably another way to achieve this. From memory that was the best way I could find to get a quoted array of identifiers. But I'm open to suggestions/PRs. After fixing this (assuming nothing else is broken) it would really be best to set up an integration test in CI against redshift, to ensure it keeps working in the future. |
Beta Was this translation helpful? Give feedback.
-
I appreciate this is not a great solution but I'm not sure I fully understand the usecase as well. I hacked around it by performing quoting on the client for my own use and everything else works. We don't use the schema dump. After researching SQL only solutions, this is the best I could come up with which has some obvious limitations: with number_sequence as (
select 1 as n
union
select 2 as n
union
select 3 as n
),
comma_separated as (
select 'public,schema migrations' as value
),
unnested as (
select quote_ident(split_part(cs.value, ',', n))
from comma_separated cs
cross join number_sequence
where split_part(cs.value, ',', n) != ''
)
select *
from unnested; |
Beta Was this translation helpful? Give feedback.
-
At this moment is there some official solution to this case? |
Beta Was this translation helpful? Give feedback.
-
I think if you use v1.11.0 this particular issue won't occur, since it seems related to the custom I'm happy to accept a PR fixing this but don't currently have time to work on it myself. |
Beta Was this translation helpful? Give feedback.
-
I suppose that isn't the best solution but it's very pity that we limited to use dbmate old version, so I prepare small PR - #488 |
Beta Was this translation helpful? Give feedback.
-
Duplicate of #198 |
Beta Was this translation helpful? Give feedback.
-
Given that AWS Redshift is mostly compatible with Postgres I gave it a try but it failed immediately in
quotedMigrationsTableNameParts
.Unfortunately Redshift doesn't support the array syntax and therefore the unnesting used here:
Are there any alternatives that could replace this to achieve the same outcome?
Beta Was this translation helpful? Give feedback.
All reactions