GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.pgadmin.org — Schema Diff — pgAdmin 4 9.18 documentation ContentsSchema Diff¶Schema Diff is a feature that allows you to compare objects between two databases or two schemas. Use the Tools menu to access Schema Diff. The Schema Diff feature allows you to:
Note:
Click on Schema Diff under the Tools menu to open a selection panel. To compare databases choose the source and target servers, and databases. To compare schemas choose the source and target servers, databases, and schemas. After selecting the objects, click on the Compare button. You can open multiple copies of Schema Diff in individual tabs simultaneously. To close a copy of Schema Diff, click the X in the upper-right hand corner of the tab bar. You can rename the panel title by right-clicking and select the “Rename Panel” option.
Use the Preferences dialog to specify following:
Schema Diff in Workspace Layout¶The workspace layout offers a distraction-free, dedicated area for the Schema Diff. By default, the Schema Diff workspace button remains disabled until at least one Schema Diff tab is opened. Note: In the Workspace layout, all Schema Diff tabs open within the Schema Diff workspace.
The Schema Diff panel is divided into two panels; an Object Comparison panel and a DDL Comparison panel. The Schema Diff Object Comparison Panel¶In the object comparison panel, you can select the source and target servers of the same major version, and databases to be compared. You can select any server listed under the object explorer whether it is connected or disconnected. If you select a server that is not connected then it will prompt you for the password before using the server. Next, select the databases that will be compared. The databases can be the same or different (and within the same server or from different servers).
Use the drop-down near to Compare button to ignore owner, whitespace, tablespace and grants.
After you select servers, and databases, click on the Compare button to obtain the Comparison Result.
Use the drop-down lists of Database Objects to view the DDL statements. In the upper-right hand corner of the object comparison panel is a Filter option that you can use to filter the database objects based on the following comparison criteria:
Click on any of the database objects in the object comparison panel to display the DDL Statements of that object in the DDL Comparison panel. Click the Help icon to open Schema Diff documentation. Schema Diff DDL Comparison Panel¶The DDL Comparison panel displays three columns:
You can review the DDL statements of all the database objects to check for the differences in the SQL statements. Also, you can generate the SQL script of the differences found in the target database object based on the SQL statement of the source database object. To generate the script, select the checkboxes of the database objects in the object comparison panel and then click on the Generate Script button in the upper-right hand corner of the object comparison panel. Select the database objects and click on the Generate Script button to open the Query Tool in a new tab, with the difference in the SQL statement displayed in the Query Editor. If you have clicked on the database object to check the difference generated in the DDL Comparison Panel, and you have not selected the checkbox of the database object, pgAdmin will open the Query Tool in a new tab, with the differences in the SQL statements displayed in the Query Editor. You can also use the Copy button to copy the difference generated in the DDL Comparison panel.
Apply the SQL Statement in the target database to synchronize the databases. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |