This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this 
push:
     new 1c0c2ec445c Now the pgstat has not worked, so disable some functions
1c0c2ec445c is described below

commit 1c0c2ec445c9d25e4f3ac8298d87b0fefc5c2956
Author: Jinbao Chen <[email protected]>
AuthorDate: Thu Dec 18 10:02:33 2025 +0800

    Now the pgstat has not worked, so disable some functions
---
 src/backend/storage/file/fd.c       | 3 +++
 src/backend/utils/activity/pgstat.c | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 7b0f28a9deb..62661123e0f 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -1578,6 +1578,9 @@ FileAccess(File file)
 static void
 ReportTemporaryFileUsage(const char *path, off_t size)
 {
+       /* MERGE16_FIXME: Now the pgstat has not worked, so disable the report 
first */
+       return;
+       
        pgstat_report_tempfile(size);
 
        if (log_temp_files >= 0)
diff --git a/src/backend/utils/activity/pgstat.c 
b/src/backend/utils/activity/pgstat.c
index cb17dc0c4bd..20c3f3bbb40 100644
--- a/src/backend/utils/activity/pgstat.c
+++ b/src/backend/utils/activity/pgstat.c
@@ -1281,7 +1281,8 @@ pgstat_get_kind_info(PgStat_Kind kind)
 void
 pgstat_assert_is_up(void)
 {
-       Assert(pgstat_is_initialized && !pgstat_is_shutdown);
+       /* MERGE16_FIXME: Now the pgstat has not worked, so disable the assert 
first */
+//     Assert(pgstat_is_initialized && !pgstat_is_shutdown);
 }
 #endif
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to