Open menu
KS DB Merge Tools logo KS DB Merge Tools
database diff & merge
KS DB Merge Tools for PostgreSQL logo for PostgreSQL
 
KS DB Merge Tools for MySQL logo
MssqlMerge logo
KS DB Merge Tools for Oracle logo
KS DB Merge Tools for SQLite logo
AccdbMerge logo
KS DB Merge Tools for Cross-DBMS logo
KS DB Merge Tools All-In-One license
Other tools

Compare and Synchronize Objects (Functions, Stored Procedures, etc.)

This section covers comparing and synchronizing database schema objects other than tables — functions, stored procedures, etc. Some features related to detailed diff analysis are available only for the Standard version.

Object handling is covered in two ways:

  • Bulk sync: work with object lists and synchronize multiple objects at once.
  • Detailed comparison: analyze changes in a specific object without synchronization.

Compare and Sync Multiple Objects

  1. Open databases (see the Schema Changes Summary use case) and click A NEW+CHG (new + changed) count for required object type, for example for Views. Or, you can click other counts to process all, only new or only changed objects.

    for PostgreSQL, Home tab with schema changes summary, click views NEW+CHG
  2. Opened Object list tab contains list of all changed objects and objects missing in the other database. Use filter B to show only new or only changed objects. The header shows C total counts, and the footer shows D text preview of the object definition changes.

    for PostgreSQL, Object list tab with new and changed views
  3. To synchronize changes, E select required objects and click F Merge.

    for PostgreSQL, Object list tab with views - select and merge
  4. In the opened Execute script dialog, click G Run to execute generated script immediately, or H Copy / Save buttons to save generated script for future use.

    for PostgreSQL, Execute script dialog with views merge script

Compare Specific Object

  1. Open databases (see the Schema Changes Summary use case) and click A CHANGED count for required object type, for example for Functions.

    for PostgreSQL, Home tab with schema changes summary, click functions CHANGED
  2. Opened Object list tab contains list of all changed objects. Click B on required object name to analyze specific object changes in detail.

    for PostgreSQL, Object list tab with changed functions
  3. Opened Text diff tab contains object definition scripts from both databases. C New and changed lines are highlighted. Bottom of the screen contains D detailed comparison for selected line.

    for PostgreSQL, Text diff tab with a changed function
  4. You can click E Show only new and changed to collapse unchanged lines, or apply similar filter to show only new or only changed lines. Unchanged lines are collapsed, leaving just a few unchanged rows for context, which can be configured F.

    for PostgreSQL, Text diff tab with a changed function, show new and changed