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 subscriptions in PostgreSQL database, use the corresponding tab of the Object Browser.

In the list of subscriptions, disabled subscriptions are shown dimmed.

Creating Subscriptions

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

Notes

Deleting Subscriptions

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

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

Hint: Subscriptions can also be deleted by the SQL DROP SUBSCRIPTION command.

Opening Existing Subscriptions

Switch to the corresponding tab of the Object Browser. Locate the needed subscription 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 Subscriptions

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

Hint: Subscriptions can also be modified by the SQL ALTER SUBSCRIPTION command.

Cloning Subscriptions

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

See also