Can AWS DMS see materialized views?

I’m using AWS DMS (database migration service) to migrate data from a Postgres materialized view to a redshift table. I looked it up online and I can’t find any resources stating DMS can transfer data from a materialized view but I see it can from a regular view. I added this to the JSON in the DMS task:

“table-type”: “view”

And it didn’t pick up the materialized view. Does anyone know how I can do this? Or a better place to ask? Thanks.

AWS DMS doesn’t support Materialized views, you need to migrate that manually. You need to migrate MV from the source DB as a table into the target database and create MV from there.

If you can use another Database migration tool, instead of AWS DMS, that will reduce lots of potential headaches. Good luck.

yeah, AWS DMS is a total shit

? We have DMS working with materialized views.

Note: Not a dba and am shit with databases. But work with a lot of DBAs and we had a project to copy data from Oracle to S3 in a parquet format. One of the requirements ‘was’ loading a couple of materialized views. And working with an AWS Rep - we managed to get this done.

Just to make sure you’re talking about the cached copy of the database data correct? I… think materialized views are precompiled or cached copies of data? But don’t quote me on that. I’m on the Linux / Networking side of things.

DMS can be extremely painful.

Do you recommend any other reliable database migration tools? I’ve worked on 100+ on-prem to AWS migrations in the past three years, and AWS DMS has caused more headaches than debugging a production issue on a Friday night.

Hi, AWS DMS has partial support for Oracle materialized views which is mentioned here: https://go.aws/41FlFDO. However, if this doesn’t quite answer your question please see this article/resource which details some of our help options: http://go.aws/get-help. They can be quite useful.

- Dino C.

I’m actually working with the AWS team on this very thing right now. I will update the thread when their solution has been tested.