Changed output table to only use table name and exclude the schema
parent
ec818d7d58
commit
5d4368bbca
|
@ -417,9 +417,7 @@ static void pg_decode_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
|
||||||
/* set common fields */
|
/* set common fields */
|
||||||
rmsg.commit_time = TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(txn->commit_time);
|
rmsg.commit_time = TIMESTAMPTZ_TO_USEC_SINCE_EPOCH(txn->commit_time);
|
||||||
rmsg.has_commit_time = true;
|
rmsg.has_commit_time = true;
|
||||||
rmsg.table = quote_qualified_identifier(
|
rmsg.table = pstrdup(NameStr(class_form->relname));
|
||||||
get_namespace_name(get_rel_namespace(RelationGetRelid(relation))),
|
|
||||||
NameStr(class_form->relname));
|
|
||||||
|
|
||||||
/* decode different operation types */
|
/* decode different operation types */
|
||||||
switch (change->action) {
|
switch (change->action) {
|
||||||
|
|
Loading…
Reference in New Issue