Complete the code to create a publication for all tables.
CREATE PUBLICATION my_pub FOR [1];all tables tells PostgreSQL to publish changes from all tables.
Complete the code to create a subscription connecting to a publisher.
CREATE SUBSCRIPTION my_sub CONNECTION '[1]' PUBLICATION my_pub;
The connection string must specify host, dbname, user, and password in key=value pairs.
Fix the error in the publication creation by choosing the correct option.
CREATE PUBLICATION my_pub FOR TABLE [1];When specifying multiple tables, list them separated by commas without parentheses.
Fill both blanks to create a publication for specific tables and enable insert replication.
CREATE PUBLICATION my_pub FOR TABLE [1] WITH (publish = '[2]');
Specify tables separated by commas and set publish to 'insert' to replicate insert operations only.
Fill all three blanks to create a subscription with a connection string, publication, and enable copy data.
CREATE SUBSCRIPTION my_sub CONNECTION '[1]' PUBLICATION [2] WITH (copy_data = [3]);
The connection string must be complete, the publication name must match, and copy_data set to true copies existing data on subscription creation.