This is an automated email from the ASF dual-hosted git repository. yjhjstz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 9b5a8a3d35664aed514192ed581b1592723d0b1c Author: Marbin Tan <[email protected]> AuthorDate: Fri Feb 17 15:55:53 2023 -0800 Remove extra `InvalidateCatalogSnapshotConditionally` call Remove the unnecessary extra call as we are already calling this function a couple of lines above. --- src/backend/tcop/postgres.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 7ffccb7830..c629f440c6 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -5384,12 +5384,6 @@ PostgresMain(int argc, char *argv[], */ InvalidateCatalogSnapshotConditionally(); - /* - * Also consider releasing our catalog snapshot if any, so that it's - * not preventing advance of global xmin while we wait for the client. - */ - InvalidateCatalogSnapshotConditionally(); - /* * (1) If we've reached idle state, tell the frontend we're ready for * a new query. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
