sync code

This commit is contained in:
LiHeng
2022-03-04 23:22:16 +08:00
parent d26ec83e7b
commit de223dd152
2618 changed files with 382415 additions and 163216 deletions

View File

@ -137,7 +137,9 @@ void ThreadPoolStream::InitStream()
InitializeGUCOptions();
/* Read in remaining GUC variables */
read_nondefault_variables();
/* Do local initialization of file, storage and buffer managers */
ReBuildLSC();
InitFileAccess();
smgrinit();
@ -212,6 +214,7 @@ static void ResetStreamStatus()
if (!IS_PGSTATE_TRACK_UNDEFINE) {
volatile PgBackendStatus* beentry = t_thrd.shemem_ptr_cxt.MyBEEntry;
beentry->st_queryid = 0;
pgstat_report_unique_sql_id(true);
beentry->st_sessionid = 0;
beentry->st_parent_sessionid = 0;
beentry->st_thread_level = 0;