Feature request: schema diff tool - Mailing list pgsql-hackers

From Neszt Tibor
Subject Feature request: schema diff tool
Date
Msg-id CAAN1oLAQMJnDqSGvcP2Raq8sgkz5xTcmwiBvsAxXHRY5cEVO9Q@mail.gmail.com
Whole thread Raw
Responses Re: Feature request: schema diff tool
List pgsql-hackers
Hello,

A diff tool that would generate create, drop, alter, etc. commands from the differences between 2 specified schemes would be very useful. The diff could even manage data, so there would be insert, delete update command outputs, although I think the schema diff management is much more important and necessary.

Today, all modern applications are version-tracked, including the sql scheme. Now the schema changes must be handled twice: on the one hand, the schema must be modified, and on the other hand, the schema modification commands must also be written for the upgrade process. A good diff tool would allow only the schema to be modified.

Such a tool already exists because the community needed it, e.g. apgdiff. I think the problem with this is that the concept isn't even good. I think this tool should be part of postgresql, because postgresql always knows what the 100% sql syntax is current, an external program, for example apgdiff can only follow changes afterwards, generating continuous problems. Not to mention that an external application can stop, e.g. apgdiff is also no longer actively developed, so users who built on a diff tool are now in trouble.

Furthermore, it is the least amount of work to do this on the postgresql development side, you have the expertise, the sql language processor, etc.

What is your opinion on this?

Regards,
 Neszt Tibor

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: Fix parallel vacuum buffer usage reporting
Next
From: Yugo NAGATA
Date:
Subject: Small filx on the documentation of ALTER DEFAULT PRIVILEGES