Re: Call pstrdup() of palloc.h will change source string, please help!

2022-06-04 Thread Tom Lane
"=?ISO-8859-1?B?bWVuZ2Zhbmp1bg==?=" writes: > pstrdup() will change source "system_time( stt , ett )" to "system_time( stt > " and return "system_time( stt " when it is called > in ValidateForeignTableOptions() and CStoreGetOptions(). That claim is not very credible. I'm not sure where the bug

Call pstrdup() of palloc.h will change source string, please help!

2022-06-04 Thread mengfanjun
Hello, I'm working on modifying an postgresql extension called "cstore_fdw". My function is like: > static bool ParsePeriod(const char *periodString, Period *result) {     bool isSuccess = true;     char *dupPeriodForString;         char delimiters[