This is an automated email from the ASF dual-hosted git repository.
djwang pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
from 1e2fe336af1 Revert "Fix COPY TO returning 0 rows during concurrent
reorganize"
new 029897c8832 [yagp_hooks_collector] Add extension skeleton with GRPC
transport
new d2d9d2b906b [yagp_hooks_collector] Fix segfault in plan text generator
new b3bf74265f4 [yagp_hooks_collector] Add executor instrumentation, /proc
stats, and normalized texts
new ce1199aa87d [yagp_hooks_collector] Apply llvm code style
new 729b35f86fd [yagp_hooks_collector] Switch to query_info_collect_hook
and fix stability
new b8f77cbf8e0 [yagp_hooks_collector] Add debian packaging and bionic
GRPC compatibility
new bef6d57baa0 [yagp_hooks_collector] Add CDB metrics, query nesting, and
configuration GUCs
new cbe5c5f54f1 [yagp_hooks_collector] Diff system stats per-query and
improve error safety
new 1c1bf580b06 [yagp_hooks_collector] Fix EventSender and GrpcConnector
in forked processes
new c73879ab036 [yagp_hooks_collector] Fix memory leak in EXPLAIN ANALYZE
code path
new 596b67d6d97 [yagp_hooks_collector] Add motion network and workfile
spill stats
new f9793da16cb [yagp_hooks_collector] Clean up threading, signal
handling, and logging
new ce10c577fbe [yagp_hooks_collector] Add ignored_users_list GUC
new c09ea5d21a1 [yagp_hooks_collector] Replace GRPC transport with
protobuf-over-UDS
new 855fab2576d [yagp_hooks_collector] Fix missing query statuses after
protobuf migration
new d76bac80d74 [yagp_hooks_collector] Add stat_messages() runtime
statistics view
new 91411cdf4c9 [yagp_hooks_collector] Fix message lifecycle ordering and
memory leaks
new c998c0942de [yagp_hooks_collector] Improve query_id and resource group
resolution
new 4dfbd34afdf [yagp_hooks_collector] Add nested query tracking
new 00ed85c8382 [yagp_hooks_collector] Add configurable text field trimming
new d03197fd74f [yagp_hooks_collector] Add error message reporting for
failed queries
new 56a1fc2bdd1 [yagp_hooks_collector] Change report_nested_queries to
PGC_USERSET
new 137f4f05f7b [yagp_hooks_collector] Diff per-query stats between submit
and end
new 93dc2e4b48d [yagp_hooks_collector] Fix try/catch block when calling
C++ code from PG hooks
new a0edde1bdf5 [yagp_hooks_collector] Improve nested query handling and
add slice info
new 2bab980321f [yagp_hooks_collector] Split EventSender into submodules
new a6eae44277d [yagp_hooks_collector] Ignore EXPLAIN VERBOSE errors for
unsupported node types
new 02390adcd86 [yagp_hooks_collector] Add per-slice interconnect
statistics
new 6b659469755 [yagp_hooks_collector] Fix user filtering propagation
timing
new e585e6a6ca7 [yagp_hooks_collector] Miscellaneous fixes and refactoring
new 622cb83aedf [yagp_hooks_collector] Add conditional EXPLAIN ANALYZE
collection
new 7027dd05bbe [yagp_hooks_collector] Fix memory leaks, add safe C++
wrappers, improve Makefile
new 46dca0331cd [yagp_hooks_collector] Add utility statement tracking and
metrics documentation
new db0818f586e [yagp_hooks_collector] Add regression tests, ANALYZE text
output, and UTF-8 trimming
new 2dc50a79b7b [yagp_hooks_collector] Port backend infrastructure and
adapt for Cloudberry
new 4e5de6cb9ab [yagp_hooks_collector] Add --with-yagp-hooks-collector
configure option and CI
new aaf34a1a9bc [yagp_hooks_collector] Add consistent GUC filtering and
submit/done hook callsites
new 7c0bb732728 [yagp_hooks_collector] Add UDS round-trip test and fix
send() accounting
new e834b237102 [yagp_hooks_collector] Fix locale-dependent normalization
crash
new 7f4ed5ed5c6 [yagp_hooks_collector] Add Apache license headers and
enable -Werror
new 8308041f415 [yagp_hooks_collector] Fix null ErrorData dereference on
segments
new 52b2f539543 [yagp_hooks_collector] Move to gpcontrib directory
new ff6e14abb87 [gp_stats_collector] Rename yagp_hooks_collector to
gp_stats_collector
new 8681303a269 [gp_stats_collector] Simplify Makefile and add
-Wno-unused-but-set-variable
new 7e12a9379e6 [gp_stats_collector] Build by default with extension
disabled via GUCs
new 3a8cc5ce6b4 [gp_stats_collector] Code quality cleanup
new 5cfde24dc4e [gp_stats_collector] Wrap hook call in try/catch on error
path
new 9f1c3292faf [gp_stats_collector] Adapt namings for Cloudberry
new af533b2d68c [gp_stats_collector] Remove unnecessary
CONFIGURE_EXTRA_OPTS param
The 49 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/build-cloudberry-rocky8.yml | 29 +
.github/workflows/build-cloudberry.yml | 29 +
.github/workflows/build-deb-cloudberry.yml | 29 +
configure | 28 +
configure.ac | 18 +
.../cloudberry/scripts/configure-cloudberry.sh | 1 +
gpcontrib/Makefile | 3 +
.../gp_stats_collector}/.clang-format | 29 +-
gpcontrib/gp_stats_collector/Makefile | 35 ++
gpcontrib/gp_stats_collector/README.md | 47 ++
.../gp_stats_collector/expected/gpsc_cursors.out | 163 ++++++
.../gp_stats_collector/expected/gpsc_dist.out | 175 ++++++
.../gp_stats_collector/expected/gpsc_guc_cache.out | 57 ++
.../gp_stats_collector/expected/gpsc_locale.out | 23 +
.../gp_stats_collector/expected/gpsc_select.out | 136 +++++
gpcontrib/gp_stats_collector/expected/gpsc_uds.out | 42 ++
.../gp_stats_collector/expected/gpsc_utf8_trim.out | 68 +++
.../gp_stats_collector/expected/gpsc_utility.out | 248 ++++++++
.../gp_stats_collector--1.0--1.1.sql | 113 ++++
.../gp_stats_collector/gp_stats_collector--1.0.sql | 55 ++
.../gp_stats_collector/gp_stats_collector--1.1.sql | 110 ++++
.../gp_stats_collector/gp_stats_collector.control | 5 +
gpcontrib/gp_stats_collector/metric.md | 145 +++++
.../gp_stats_collector/protos/gpsc_metrics.proto | 201 +++++++
.../gp_stats_collector/protos/gpsc_plan.proto | 586 +++++++++++++++++++
.../protos/gpsc_set_service.proto | 69 +++
gpcontrib/gp_stats_collector/sql/gpsc_cursors.sql | 85 +++
gpcontrib/gp_stats_collector/sql/gpsc_dist.sql | 88 +++
.../gp_stats_collector/sql/gpsc_guc_cache.sql | 43 ++
gpcontrib/gp_stats_collector/sql/gpsc_locale.sql | 29 +
gpcontrib/gp_stats_collector/sql/gpsc_select.sql | 69 +++
gpcontrib/gp_stats_collector/sql/gpsc_uds.sql | 31 +
.../gp_stats_collector/sql/gpsc_utf8_trim.sql | 45 ++
gpcontrib/gp_stats_collector/sql/gpsc_utility.sql | 135 +++++
gpcontrib/gp_stats_collector/src/Config.cpp | 191 ++++++
gpcontrib/gp_stats_collector/src/Config.h | 115 ++++
gpcontrib/gp_stats_collector/src/EventSender.cpp | 645 +++++++++++++++++++++
gpcontrib/gp_stats_collector/src/EventSender.h | 203 +++++++
gpcontrib/gp_stats_collector/src/GpscStat.cpp | 154 +++++
.../gp_stats_collector/src/GpscStat.h | 42 +-
gpcontrib/gp_stats_collector/src/PgUtils.cpp | 104 ++++
.../gp_stats_collector/src/PgUtils.h | 20 +-
gpcontrib/gp_stats_collector/src/ProcStats.cpp | 144 +++++
.../gp_stats_collector/src/ProcStats.h | 18 +-
gpcontrib/gp_stats_collector/src/ProtoUtils.cpp | 375 ++++++++++++
gpcontrib/gp_stats_collector/src/ProtoUtils.h | 57 ++
gpcontrib/gp_stats_collector/src/UDSConnector.cpp | 144 +++++
.../gp_stats_collector/src/UDSConnector.h | 25 +-
.../gp_stats_collector/src/gp_stats_collector.c | 175 ++++++
gpcontrib/gp_stats_collector/src/hook_wrappers.cpp | 474 +++++++++++++++
.../gp_stats_collector/src/hook_wrappers.h | 35 +-
gpcontrib/gp_stats_collector/src/log/LogOps.cpp | 173 ++++++
.../gp_stats_collector/src/log/LogOps.h | 28 +-
gpcontrib/gp_stats_collector/src/log/LogSchema.cpp | 189 ++++++
gpcontrib/gp_stats_collector/src/log/LogSchema.h | 199 +++++++
.../gp_stats_collector/src/memory/gpdbwrappers.cpp | 316 ++++++++++
.../gp_stats_collector/src/memory/gpdbwrappers.h | 86 +++
.../src/stat_statements_parser/README.md | 9 +-
.../pg_stat_statements_parser.c | 378 ++++++++++++
.../pg_stat_statements_parser.h | 33 +-
pom.xml | 7 +
src/Makefile.global.in | 1 +
src/backend/commands/createas.c | 8 +-
src/backend/commands/matview.c | 5 +
src/backend/commands/portalcmds.c | 17 +
src/backend/tcop/pquery.c | 3 +
src/backend/utils/workfile_manager/workfile_mgr.c | 24 +
src/include/executor/execdesc.h | 11 +
src/include/utils/workfile_mgr.h | 4 +
69 files changed, 7262 insertions(+), 119 deletions(-)
copy {src/backend/gporca => gpcontrib/gp_stats_collector}/.clang-format (89%)
create mode 100644 gpcontrib/gp_stats_collector/Makefile
create mode 100644 gpcontrib/gp_stats_collector/README.md
create mode 100644 gpcontrib/gp_stats_collector/expected/gpsc_cursors.out
create mode 100644 gpcontrib/gp_stats_collector/expected/gpsc_dist.out
create mode 100644 gpcontrib/gp_stats_collector/expected/gpsc_guc_cache.out
create mode 100644 gpcontrib/gp_stats_collector/expected/gpsc_locale.out
create mode 100644 gpcontrib/gp_stats_collector/expected/gpsc_select.out
create mode 100644 gpcontrib/gp_stats_collector/expected/gpsc_uds.out
create mode 100644 gpcontrib/gp_stats_collector/expected/gpsc_utf8_trim.out
create mode 100644 gpcontrib/gp_stats_collector/expected/gpsc_utility.out
create mode 100644
gpcontrib/gp_stats_collector/gp_stats_collector--1.0--1.1.sql
create mode 100644 gpcontrib/gp_stats_collector/gp_stats_collector--1.0.sql
create mode 100644 gpcontrib/gp_stats_collector/gp_stats_collector--1.1.sql
create mode 100644 gpcontrib/gp_stats_collector/gp_stats_collector.control
create mode 100644 gpcontrib/gp_stats_collector/metric.md
create mode 100644 gpcontrib/gp_stats_collector/protos/gpsc_metrics.proto
create mode 100644 gpcontrib/gp_stats_collector/protos/gpsc_plan.proto
create mode 100644 gpcontrib/gp_stats_collector/protos/gpsc_set_service.proto
create mode 100644 gpcontrib/gp_stats_collector/sql/gpsc_cursors.sql
create mode 100644 gpcontrib/gp_stats_collector/sql/gpsc_dist.sql
create mode 100644 gpcontrib/gp_stats_collector/sql/gpsc_guc_cache.sql
create mode 100644 gpcontrib/gp_stats_collector/sql/gpsc_locale.sql
create mode 100644 gpcontrib/gp_stats_collector/sql/gpsc_select.sql
create mode 100644 gpcontrib/gp_stats_collector/sql/gpsc_uds.sql
create mode 100644 gpcontrib/gp_stats_collector/sql/gpsc_utf8_trim.sql
create mode 100644 gpcontrib/gp_stats_collector/sql/gpsc_utility.sql
create mode 100644 gpcontrib/gp_stats_collector/src/Config.cpp
create mode 100644 gpcontrib/gp_stats_collector/src/Config.h
create mode 100644 gpcontrib/gp_stats_collector/src/EventSender.cpp
create mode 100644 gpcontrib/gp_stats_collector/src/EventSender.h
create mode 100644 gpcontrib/gp_stats_collector/src/GpscStat.cpp
copy contrib/pax_storage/src/cpp/clustering/clustering_writer.h =>
gpcontrib/gp_stats_collector/src/GpscStat.h (64%)
create mode 100644 gpcontrib/gp_stats_collector/src/PgUtils.cpp
copy contrib/pax_storage/src/cpp/storage/orc/orc_type.h =>
gpcontrib/gp_stats_collector/src/PgUtils.h (76%)
create mode 100644 gpcontrib/gp_stats_collector/src/ProcStats.cpp
copy contrib/pax_storage/src/cpp/storage/paxc_smgr.h =>
gpcontrib/gp_stats_collector/src/ProcStats.h (82%)
create mode 100644 gpcontrib/gp_stats_collector/src/ProtoUtils.cpp
create mode 100644 gpcontrib/gp_stats_collector/src/ProtoUtils.h
create mode 100644 gpcontrib/gp_stats_collector/src/UDSConnector.cpp
copy contrib/pax_storage/src/cpp/comm/common_io.h =>
gpcontrib/gp_stats_collector/src/UDSConnector.h (74%)
create mode 100644 gpcontrib/gp_stats_collector/src/gp_stats_collector.c
create mode 100644 gpcontrib/gp_stats_collector/src/hook_wrappers.cpp
copy src/include/common/mdb_locale.h =>
gpcontrib/gp_stats_collector/src/hook_wrappers.h (64%)
create mode 100644 gpcontrib/gp_stats_collector/src/log/LogOps.cpp
copy contrib/pax_storage/src/cpp/storage/wal/pax_wal.h =>
gpcontrib/gp_stats_collector/src/log/LogOps.h (70%)
create mode 100644 gpcontrib/gp_stats_collector/src/log/LogSchema.cpp
create mode 100644 gpcontrib/gp_stats_collector/src/log/LogSchema.h
create mode 100644 gpcontrib/gp_stats_collector/src/memory/gpdbwrappers.cpp
create mode 100644 gpcontrib/gp_stats_collector/src/memory/gpdbwrappers.h
copy CODE_OF_CONDUCT.md =>
gpcontrib/gp_stats_collector/src/stat_statements_parser/README.md (72%)
create mode 100644
gpcontrib/gp_stats_collector/src/stat_statements_parser/pg_stat_statements_parser.c
copy contrib/pax_storage/src/cpp/clustering/clustering_writer.h =>
gpcontrib/gp_stats_collector/src/stat_statements_parser/pg_stat_statements_parser.h
(67%)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]