Skip to content

Commit ef81bbf

Browse files
committed
Fix system_views_gp.in and fix test query_conflict
Some pg_ views have been modified by cbdb: the gp_segment_id colmun has been added to them. So they are failed to be transformed from the pg_ views to gp_ views (see commit 5028222620d410fe3d4c60f732a599e269006968) So just remove them from system_vies_gp.in. Maybe better to fix them later.
1 parent 946499b commit ef81bbf

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file lists all the PG system views 'pg_%' that we would like to create an
22
# MPP-aware view 'gp_%' out of. The generated 'gp_%' view definitions will be placed
33
# in system_views_gp.sql, and initialized at the same time as system_views.sql.
4-
pg_backend_memory_contexts
4+
#pg_backend_memory_contexts
55
pg_config
66
pg_cursors
77
pg_file_settings
@@ -11,16 +11,16 @@ pg_settings
1111
pg_stat_activity
1212
pg_stat_archiver
1313
pg_stat_bgwriter
14-
pg_stat_database
14+
#pg_stat_database
1515
pg_stat_database_conflicts
1616
pg_stat_gssapi
1717
pg_stat_operations
18-
pg_stat_progress_analyze
19-
pg_stat_progress_basebackup
20-
pg_stat_progress_cluster
21-
pg_stat_progress_copy
22-
pg_stat_progress_create_index
23-
pg_stat_progress_vacuum
18+
#pg_stat_progress_analyze
19+
#pg_stat_progress_basebackup
20+
#pg_stat_progress_cluster
21+
#pg_stat_progress_copy
22+
#pg_stat_progress_create_index
23+
#pg_stat_progress_vacuum
2424
pg_stat_slru
2525
pg_stat_ssl
2626
pg_stat_subscription
@@ -29,7 +29,7 @@ pg_stat_sys_tables
2929
pg_stat_user_functions
3030
pg_stat_user_indexes
3131
pg_stat_user_tables
32-
pg_stat_wal
32+
#pg_stat_wal
3333
pg_stat_wal_receiver
3434
pg_stat_xact_all_tables
3535
pg_stat_xact_sys_tables
@@ -44,5 +44,5 @@ pg_statio_sys_tables
4444
pg_statio_user_indexes
4545
pg_statio_user_sequences
4646
pg_statio_user_tables
47-
pg_stats
47+
#pg_stats ERROR: column "most_common_vals" has pseudo-type anyarray
4848
pg_stats_ext

src/test/isolation2/input/hot_standby/query_conflict.source

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ select gp_inject_fault('after_open_temp_file', 'reset',dbid) from gp_segment_con
126126
-1S<:
127127
-1Sq:
128128

129-
-- conflict has been recorded
130-
-1S: select max(confl_tablespace) from gp_stat_database_conflicts where datname = 'isolation2-hot-standby';
129+
-- conflict has been recorded. The query has multiple slices
130+
-1S: select max(confl_tablespace) >= 1 from gp_stat_database_conflicts where datname = 'isolation2-hot-standby';
131131

132132
-- cleanup
133133
!\retcode rm -rf @testtablespace@/hs_tablespace_directory;

src/test/isolation2/output/hot_standby/query_conflict.source

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ ERROR: canceling statement due to conflict with recovery (seg1 slice3 127.0.1.
269269
DETAIL: User was or might have been using tablespace that must be dropped.
270270
-1Sq: ... <quitting>
271271

272-
-- conflict has been recorded
273-
-1S: select max(confl_tablespace) from gp_stat_database_conflicts where datname = 'isolation2-hot-standby';
274-
max
275-
-----
276-
1
272+
-- conflict has been recorded. The query has multiple slices
273+
-1S: select max(confl_tablespace) >= 1 from gp_stat_database_conflicts where datname = 'isolation2-hot-standby';
274+
?column?
275+
----------
276+
t
277277
(1 row)
278278

279279
-- cleanup

0 commit comments

Comments
 (0)