futurewei-cloud / chogori-opengauss

Other
2 stars 7 forks source link

refactor K2PgInitPostgresBackend into two calls #94

Closed johnfangAFW closed 1 year ago

johnfangAFW commented 1 year ago

refactor K2PgInitPostgresBackend into two calls, i.e.,

void K2PgInitPostgresBackend(const char *program_name)

and

void K2PgInitSession(const char *db_name)

The latter will be called for each thread/session. Removed user name from the api since we don't really use it.

Updated PgGate_InitPgGate() and PgGate_DestroyPgGate() to handle multiple concurrent calls.