# Trouble to generate change script for PostgreSQL ...

**URL:** <https://forums.toadworld.com/t/trouble-to-generate-change-script-for-postgresql/40596>\
**Category:** Toad Data Modeler\
**Created:** [February 15, 2018, 5:42am UTC](https://forums.toadworld.com/t/trouble-to-generate-change-script-for-postgresql/40596 "2018-02-15T05:42:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![giron35](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@giron35](https://forums.toadworld.com/u/giron35)\
**Post date:** [February 15, 2018, 5:42am UTC](https://forums.toadworld.com/t/trouble-to-generate-change-script-for-postgresql/40596/1 "2018-02-15T05:42:46Z")

</div>

I have few PostgreSQL 10.1 databases installed on the same server.

When i want to generate change script on a specific database with TDM, i got the following error message "Internal Error - Callstack “REDataMigratorDBPG93” from package “Object RE Database for PostgreSQL9.3”.

This is not due to PostgreSQL version, even 10.1 is not supported yet, because the script is well generated for all other databases (installed on the same host/server).

Have you already experienced this problem ? how can i solve it ?

Thanks for your answer.

---

<div class="post-metadata">

**Author:** ![giron35](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@giron35](https://forums.toadworld.com/u/giron35)\
**Post date:** [February 15, 2018, 8:47am UTC](https://forums.toadworld.com/t/trouble-to-generate-change-script-for-postgresql/40596/2 "2018-02-15T08:47:13Z")

</div>

I finally solved the problem : I got a sequence called “test”.

I dropped it and evevrything was fine : i could generate database changes …

So never call an object with this name : “test”

---

<div class="post-metadata">

**Author:** ![Daril](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/daril/32/31_2.png) [@Daril](https://forums.toadworld.com/u/Daril)\
**Post date:** [February 16, 2018, 12:44am UTC](https://forums.toadworld.com/t/trouble-to-generate-change-script-for-postgresql/40596/3 "2018-02-16T00:44:56Z")

</div>

Hello giron35,

it is great that you solve your problem.

If you want we can do analyze of this error, but we need your version of TDM and details of error message (error line number etc). Details of error you can get from message explorer. So if you can still reproduce this error, we will be grateful for this information.

Thanks

Daril

---

<div class="post-metadata">

**Author:** ![giron35](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@giron35](https://forums.toadworld.com/u/giron35)\
**Post date:** [February 16, 2018, 1:06am UTC](https://forums.toadworld.com/t/trouble-to-generate-change-script-for-postgresql/40596/4 "2018-02-16T01:06:20Z")

</div>

I am using TDM version : 6.3.2.21

I re-created a sequence called “test” and i got the following error during ‘Model - generate change script’ :

---

<div class="post-metadata">

**Author:** ![Daril](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/daril/32/31_2.png) [@Daril](https://forums.toadworld.com/u/Daril)\
**Post date:** [February 16, 2018, 4:25am UTC](https://forums.toadworld.com/t/trouble-to-generate-change-script-for-postgresql/40596/5 "2018-02-16T04:25:31Z")

</div>

Hi giron35,

unfortunately your picture is wrong attached. ☹

I know, that on forum is some problem when insert picture from clipboard. Better is save to disc and attach file with picture.

Daril

---

<div class="post-metadata">

**Author:** ![giron35](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@giron35](https://forums.toadworld.com/u/giron35)\
**Post date:** [February 16, 2018, 4:39am UTC](https://forums.toadworld.com/t/trouble-to-generate-change-script-for-postgresql/40596/6 "2018-02-16T04:39:47Z")

</div>

![2072.TDM_error.png](https://global.discourse-cdn.com/quest/original/2X/b/bffb13ba5a2530e484afd6b81173fa9a80f32876.png) find enclosed the error message I received from TDM :

![2072.TDM_error.png](https://global.discourse-cdn.com/quest/original/2X/b/bffb13ba5a2530e484afd6b81173fa9a80f32876.png)

---

<div class="post-metadata">

**Author:** ![Daril](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/daril/32/31_2.png) [@Daril](https://forums.toadworld.com/u/Daril)\
**Post date:** [February 19, 2018, 2:08am UTC](https://forums.toadworld.com/t/trouble-to-generate-change-script-for-postgresql/40596/7 "2018-02-19T02:08:07Z")

</div>

Hello giron35,

unfortunately we are not able to reproduce this error. If you are willing, we appreciate your cooperation. Could you please look to message explorer, if there are any other information? It is possible that there can be message “Permission denied for relation xxx”. If there are any other information, you can post all messages from message explorer. For save messages to file, click by right click to message explorer and choose “Save Messages”.

Do you use ODBC connection or native connection? If ODBC, could you specify please version of this driver?

Btw: Possible it is problem by reverse engineering (it is part of change script). So you can reproduce it by do RE instead Change script. It should be simpler.

Thank you for cooperation

Daril
