second edition

Signed-off-by: liuquanyi@huawei <liuquanyi2@huawei.com>
This commit is contained in:
liuquanyi@huawei 2022-11-17 10:34:16 +00:00 committed by Gitee
parent e9f02d394b
commit 640a73772e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 9 additions and 8 deletions

View File

@ -749,10 +749,11 @@ void InsertOneValue(char* value, int i)
boot_get_type_io_data(typoid, &typlen, &typbyval, &typalign, &typdelim, &typioparam, &typinput, &typoutput);
values[i] = OidInputFunctionCall(typinput, value, typioparam, -1);
/*
* We use ereport not elog here so that parameters aren't evaluated unless
* the message is going to be printed, which generally it isn't
*/
* We use ereport not elog here so that parameters aren't evaluated unless
* the message is going to be printed, which generally it isn't
*/
ereport(DEBUG4, (errmsg_internal("inserted -> %s", OidOutputFunctionCall(typoutput, values[i]))));
}

View File

@ -1091,9 +1091,9 @@ void printtup(TupleTableSlot *slot, DestReceiver *self)
pq_sendcountedtext(buf, (char *)attr, strlen((char *)attr), false);
} else {
/*
* Here we catch undefined bytes in datums that are retruned to the
* client without hitting disk; This test is nost useful for uncompressed,
* non-external datums, but we're quite likely to see such here when
* Here we catch undefined bytes in datums that are returned to the
* client without hitting disk; This test is most useful for uncompressed,
* non-external datums, but we're quite likely to see such here when
* testing new C functions.
*/
if (thisState->typisvarlena)

View File

@ -67,8 +67,8 @@ typedef struct {
PrinttupAttrInfo* myinfo; /* Cached info about each attr */
StreamProducer* arg;
} streamReceiver;
#define VALGRIND_CHECK_MEM_IS_DEFINED(addr,size)\
do { \
#define VALGRIND_CHECK_MEM_IS_DEFINED(addr,size) \
do { \
} while(0)
#endif /* PRINTTUP_H */