Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build-gpdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ jobs:
{"test":"ic-parallel-retrieve-cursor",
"make_configs":["src/test/isolation2:installcheck-parallel-retrieve-cursor"]
},
{"test":"ic-temp_tables_stat",
"make_configs":["src/test/isolation2:installcheck-tts"]
},
{"test":"ic-mirrorless",
"make_configs":["src/test/isolation2:installcheck-mirrorless"]
},
Expand Down
6 changes: 4 additions & 2 deletions gpcontrib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ ifeq "$(enable_debug_extensions)" "yes"
gp_subtransaction_overflow \
gp_check_functions \
gp_aux_catalog \
gp_interconnect_stats
gp_interconnect_stats \
temp_tables_stat
else
recurse_targets = gp_sparse_vector \
gp_distribution_policy \
Expand All @@ -43,7 +44,8 @@ else
gp_subtransaction_overflow \
gp_check_functions \
gp_aux_catalog \
gp_interconnect_stats
gp_interconnect_stats \
temp_tables_stat
endif

ifeq "$(with_zstd)" "yes"
Expand Down
20 changes: 20 additions & 0 deletions gpcontrib/temp_tables_stat/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# gpcontrib/temp_tables_stat/Makefile

MODULE_big = temp_tables_stat
OBJS = $(MODULE_big).o $(WIN32RES)

EXTENSION = $(MODULE_big)
PGFILEDESC = "Collect and show statistics on temporary tables"

DATA = $(MODULE_big)--0.1.sql

ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = gpcontrib/temp_tables_stat
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
8 changes: 8 additions & 0 deletions gpcontrib/temp_tables_stat/temp_tables_stat--0.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION temp_tables_stat" to load this file. \quit

CREATE FUNCTION tts_get_seg_files(OUT user_id oid, OUT sess_id int4, OUT path text, OUT content int2, OUT size int8)
RETURNS SETOF RECORD
AS 'MODULE_PATHNAME', 'tts_get_seg_files'
LANGUAGE C
EXECUTE ON ALL SEGMENTS;
Loading
Loading