# ERD Diagram table/constraint descriptions =\> postgresql comments

**URL:** <https://forums.visual-paradigm.com/t/erd-diagram-table-constraint-descriptions-postgresql-comments/16559>\
**Category:** How To\
**Tags:** database, modeling, erd\
**Created:** [January 15, 2021, 9:06am UTC](https://forums.visual-paradigm.com/t/erd-diagram-table-constraint-descriptions-postgresql-comments/16559 "2021-01-15T09:06:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerzy\_Stachera](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/jerzy_stachera/32/4964_2.png) [@Jerzy\_Stachera](https://forums.visual-paradigm.com/u/Jerzy_Stachera)\
**Post date:** [January 15, 2021, 9:06am UTC](https://forums.visual-paradigm.com/t/erd-diagram-table-constraint-descriptions-postgresql-comments/16559/1 "2021-01-15T09:06:54Z")

</div>

Hi, I’ve found very usful the feature in ERD diagram, which allows to generate SQL from ERD with comments included from table descriptions. For me it is only working for tables. There are no comments generated for constraint although I’ve added to the model. Is there anyway to generate SQL script from ERD diagram with constraint comments?

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [January 18, 2021, 8:37am UTC](https://forums.visual-paradigm.com/t/erd-diagram-table-constraint-descriptions-postgresql-comments/16559/2 "2021-01-18T08:37:52Z")

</div>

Hi Jerzy,

Thank you for your inquiry. Currently, we do not support modeling comment constraints. I have forwarded your post to our team to study.

Best regards,  
Jick Yeung

---

<div class="post-metadata">

**Author:** ![Jerzy\_Stachera](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/jerzy_stachera/32/4964_2.png) [@Jerzy\_Stachera](https://forums.visual-paradigm.com/u/Jerzy_Stachera)\
**Post date:** [January 18, 2021, 8:49am UTC](https://forums.visual-paradigm.com/t/erd-diagram-table-constraint-descriptions-postgresql-comments/16559/3 "2021-01-18T08:49:26Z")

</div>

That would be very helpful, since ERD diagram is composed of entities (Tables) and relations (constraints) , having both would make the database self-documenting. When are you going to implement this feature ?

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [January 20, 2021, 2:13am UTC](https://forums.visual-paradigm.com/t/erd-diagram-table-constraint-descriptions-postgresql-comments/16559/4 "2021-01-20T02:13:03Z")

</div>

Hi Jerzy,

According to our developers, we will try to support Postgres, but we don’t have a timeframe yet. I will post again when there is any update.

Best regards,  
Jick Yeung

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [January 21, 2021, 10:43am UTC](https://forums.visual-paradigm.com/t/erd-diagram-table-constraint-descriptions-postgresql-comments/16559/5 "2021-01-21T10:43:37Z")

</div>

Hi Jerzy,

Your case has been supported in the latest patch build. Please perform an update to advance to the latest patch build (16\_2\_20210130am or higher) to obtain the fix. The screenshots below shows you how things work.

 ![image](https://forums.visual-paradigm.com/uploads/default/original/2X/5/5fd546c877fd6611290bb8c2eed3d0d2f46649c9.png)

 ![image](https://forums.visual-paradigm.com/uploads/default/original/2X/f/f21f70d021b81032a100580154063be231dfe00d.png)

Hope this helps.

Best regards,  
Jick Yeung
