This is necessary to be able to reproduce publication membership
correctly if tables are involved in inheritance.
Author: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
query = createPQExpBuffer();
- appendPQExpBuffer(query, "ALTER PUBLICATION %s ADD TABLE",
+ appendPQExpBuffer(query, "ALTER PUBLICATION %s ADD TABLE ONLY",
fmtId(pubrinfo->pubname));
appendPQExpBuffer(query, " %s;",
fmtId(tbinfo->dobj.name));
create_sql =>
'ALTER PUBLICATION pub1 ADD TABLE dump_test.test_table;',
regexp => qr/^
- \QALTER PUBLICATION pub1 ADD TABLE test_table;\E
+ \QALTER PUBLICATION pub1 ADD TABLE ONLY test_table;\E
/xm,
like => {
binary_upgrade => 1,
create_sql =>
'ALTER PUBLICATION pub1 ADD TABLE dump_test.test_second_table;',
regexp => qr/^
- \QALTER PUBLICATION pub1 ADD TABLE test_second_table;\E
+ \QALTER PUBLICATION pub1 ADD TABLE ONLY test_second_table;\E
/xm,
like => {
binary_upgrade => 1,