Merge pull request #7 from DuncanSands/master
DBZ-277 Don't send per-row SQL warning messages to clientspull/9/head v0.5.1
commit
d08a75593c
|
@ -529,7 +529,7 @@ static void set_datum_value(Decoderbufs__DatumMessage *datum_msg, Oid typid,
|
||||||
datum_msg->datum_case = DECODERBUFS__DATUM_MESSAGE__DATUM_DATUM_POINT;
|
datum_msg->datum_case = DECODERBUFS__DATUM_MESSAGE__DATUM_DATUM_POINT;
|
||||||
} else {
|
} else {
|
||||||
int len;
|
int len;
|
||||||
elog(WARNING, "Encountered unknown typid: %d, using bytes", typid);
|
elog(DEBUG1, "Encountered unknown typid: %d, using bytes", typid);
|
||||||
output = OidOutputFunctionCall(typoutput, datum);
|
output = OidOutputFunctionCall(typoutput, datum);
|
||||||
len = strlen(output);
|
len = strlen(output);
|
||||||
size = sizeof(char) * len;
|
size = sizeof(char) * len;
|
||||||
|
@ -601,7 +601,7 @@ static void tuple_to_tuple_msg(Decoderbufs__DatumMessage **tmsg,
|
||||||
if (!isnull) {
|
if (!isnull) {
|
||||||
if (typisvarlena && VARATT_IS_EXTERNAL_ONDISK(origval)) {
|
if (typisvarlena && VARATT_IS_EXTERNAL_ONDISK(origval)) {
|
||||||
// TODO: Is there a way we can handle this?
|
// TODO: Is there a way we can handle this?
|
||||||
elog(WARNING, "Not handling external on disk varlena at the moment.");
|
elog(DEBUG1, "Not handling external on disk varlena at the moment.");
|
||||||
} else if (!typisvarlena) {
|
} else if (!typisvarlena) {
|
||||||
set_datum_value(&datum_msg, attr->atttypid, typoutput, origval);
|
set_datum_value(&datum_msg, attr->atttypid, typoutput, origval);
|
||||||
} else {
|
} else {
|
||||||
|
@ -713,7 +713,7 @@ static void pg_decode_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
|
||||||
tuple_to_tuple_msg(rmsg.old_tuple, relation,
|
tuple_to_tuple_msg(rmsg.old_tuple, relation,
|
||||||
&change->data.tp.oldtuple->tuple, tupdesc);
|
&change->data.tp.oldtuple->tuple, tupdesc);
|
||||||
} else {
|
} else {
|
||||||
elog(WARNING, "no information to decode from DELETE because either no PK is present or REPLICA IDENTITY NOTHING or invalid ");
|
elog(DEBUG1, "no information to decode from DELETE because either no PK is present or REPLICA IDENTITY NOTHING or invalid ");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue