Giter VIP home page Giter VIP logo

dms-psql-post-data's Introduction

This is Sin-Woo, a Software Engineer from South Korea. I am an enthusiast of Python & Agile.

⭐️ Recent Activity: Contribution to Django django/django#16386 ⭐️

Contact me via Send an Email

dms-psql-post-data's People

Contributors

pb-dod avatar sinwoobang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dms-psql-post-data's Issues

I will help you

Hello, this is Sin-Woo, the creator of this repository.

I have composed this code after I faced many problems while using AWS DMS.
I can confirm that the features are so useful, however, this repository is not as mature as other famous libraries since it is a brand-new one.

Thus, I am willing to help you if you contact me via email or comment on this issue.
I would like to share my experience and contribute to developer communities.
Feel free to contact me if you need any kind of help.

Thanks.

Identity columns sequences were not migrated

Hello,

I just want to give the information to whoever that could help.
I was trying to use DMS for Postgres to Postgres migration and even after migrating the sequences with the provided script, I was missing a few sequences. It took me quite a long time to find out that they were not migrated.

I did not figure out fully why they behave differently but I think this is because they are linked to identity columns.

I modified the query to use pg_class instead of information_schema.sequences and that indeed gave me a few more sequences to update :

SELECT d.refobjid::regclass as schema, a.attname as field, seq.relname as sequence_name
FROM pg_depend d
     INNER JOIN pg_attribute a ON a.attrelid = d.refobjid AND a.attnum = d.refobjsubid
     INNER JOIN  pg_class as seq ON seq.relkind = 'S' and d.objid = ('"' || seq.relnamespace::regnamespace::text || '"."' || seq.relname || '"')::regclass
WHERE d.refobjsubid > 0
  AND d.classid = 'pg_class'::regclass
ORDER BY seq.relname ;

The ALTER table does not work with these identity columns but the setval is still required.

Hope this can help :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.