Skip to content

Commit d08a755

Browse files
authored
Merge pull request #7 from DuncanSands/master
DBZ-277 Don't send per-row SQL warning messages to clients
2 parents 8a6a830 + e248eda commit d08a755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/decoderbufs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ static void set_datum_value(Decoderbufs__DatumMessage *datum_msg, Oid typid,
529529
datum_msg->datum_case = DECODERBUFS__DATUM_MESSAGE__DATUM_DATUM_POINT;
530530
} else {
531531
int len;
532-
elog(WARNING, "Encountered unknown typid: %d, using bytes", typid);
532+
elog(DEBUG1, "Encountered unknown typid: %d, using bytes", typid);
533533
output = OidOutputFunctionCall(typoutput, datum);
534534
len = strlen(output);
535535
size = sizeof(char) * len;
@@ -601,7 +601,7 @@ static void tuple_to_tuple_msg(Decoderbufs__DatumMessage **tmsg,
601601
if (!isnull) {
602602
if (typisvarlena && VARATT_IS_EXTERNAL_ONDISK(origval)) {
603603
// TODO: Is there a way we can handle this?
604-
elog(WARNING, "Not handling external on disk varlena at the moment.");
604+
elog(DEBUG1, "Not handling external on disk varlena at the moment.");
605605
} else if (!typisvarlena) {
606606
set_datum_value(&datum_msg, attr->atttypid, typoutput, origval);
607607
} else {
@@ -713,7 +713,7 @@ static void pg_decode_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
713713
tuple_to_tuple_msg(rmsg.old_tuple, relation,
714714
&change->data.tp.oldtuple->tuple, tupdesc);
715715
} else {
716-
elog(WARNING, "no information to decode from DELETE because either no PK is present or REPLICA IDENTITY NOTHING or invalid ");
716+
elog(DEBUG1, "no information to decode from DELETE because either no PK is present or REPLICA IDENTITY NOTHING or invalid ");
717717
}
718718
break;
719719
default:

0 commit comments

Comments
 (0)