mirror of
https://github.com/debezium/postgres-decoderbufs.git
synced 2026-02-04 15:06:21 +00:00
Changed output table to only use table name and exclude the schema
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user