In Database Tour, it is possible to configure logical replication between two PostgreSQL databases. For that, you need to create publication objects(s) in the source database, and subscription object(s) on the target side.

To work with publications in PostgreSQL database, use the corresponding tab of the Object Browser.

Creating Publications

There are two ways of creating a publication in Database Tour:

Notes

Deleting Publications

To delete (drop) a publication, select the needed object in the list of publications and click Delete button.

To delete several publications, right-click the list and choose Multiple Selection. Then select needed publications and click Delete button.

Hint: Publications can also be deleted by the SQL DROP PUBLICATION command.

Opening Existing Publications

Switch to the corresponding tab of the Object Browser. Locate the needed publication and select it. This will open a new sub-window displaying the object's properties. Switch to the Script tab to view the DDL code.

Hint: If you double-click the object name in the list, the sub-window will be opened with the Script tab activated.

Editing Publications

Open the needed object (see above) and use the Utilities button on the General tab of the Publication sub-window. Here, there are several menu items to edit the publication:

Hint: Publications can also be modified by the SQL ALTER PUBLICATION command.

Cloning Publications

To clone a publication, select the needed publication in the list of publications and click Duplicate button above the list. Choose the name for the new publication. Optionally, modify some original attributes if needed. You can either create the new object immediately, or generate SQL code for that.

See also