# Unable to migrate from PostgreSQL

**URL:** <https://forum.yugabyte.com/t/unable-to-migrate-from-postgresql/1088>\
**Category:** General\
**Created:** [June 7, 2021, 4:10pm UTC](https://forum.yugabyte.com/t/unable-to-migrate-from-postgresql/1088 "2021-06-07T16:10:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janani\_in](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/janani_in/32/344_2.png) [@janani\_in](https://forum.yugabyte.com/u/janani_in)\
**Post date:** [June 7, 2021, 4:10pm UTC](https://forum.yugabyte.com/t/unable-to-migrate-from-postgresql/1088/1 "2021-06-07T16:10:02Z")

</div>

Hi,

I am trying to migrate data from PostgreSQL to YugabyteDB.  
So i extracted DDL script of a database from PostgreSQL. Created new database and ran \i /home/DDL.script. However, i am getting the below error.

please advise if there is any other alternate approach of data migration from PostgreSQL 9.5 or 11.5 to YugabyteDB

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/yugabyte/original/1X/65aa3094e3a1fa52772c20e5ee36f41177270bac.png)

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [June 8, 2021, 7:15am UTC](https://forum.yugabyte.com/t/unable-to-migrate-from-postgresql/1088/2 "2021-06-08T07:15:56Z")

</div>

Hi @janani_in

What version are you using ?

Can you retry the script ? The error "[Catalog Version Mismatch: A DDL occurred while processing this query. Try Again"](https://github.com/yugabyte/yugabyte-db/issues/3350) happens when another query happens while the database is running the DDL, and you can safely retry the DDL.

Can you also post a screenshot of `http://<yb-master-ip>:7000/tablet-servers` ?
