postgresql/src/backend/catalog
Michael Paquier e7a9496de9 Add two attributes to pg_stat_database for parallel workers activity
Two attributes are added to pg_stat_database:
* parallel_workers_to_launch, counting the total number of parallel
workers that were planned to be launched.
* parallel_workers_launched, counting the total number of parallel
workers actually launched.

The ratio of both fields can provide hints that there are not enough
slots available when launching parallel workers, also useful when
pg_stat_statements is not deployed on an instance (i.e. cf54a2c002).

This commit relies on de3a2ea3b2, that has added two fields to EState,
that get incremented when executing Gather or GatherMerge nodes.

A test is added in select_parallel, where parallel workers are spawned.

Bump catalog version.

Author: Benoit Lobréau
Discussion: https://postgr.es/m/783bc7f7-659a-42fa-99dd-ee0565644e25@dalibo.com
2024-11-11 10:40:48 +09:00
..
aclchk.c Add missing command for pg_maintain in comment 2024-10-01 00:01:32 +02:00
catalog.c For inplace update durability, make heap_update() callers wait. 2024-09-24 15:25:18 -07:00
Catalog.pm Pre-beta mechanical code beautification. 2024-05-14 16:34:50 -04:00
dependency.c Clean out column-level pg_init_privs entries when dropping tables. 2024-06-14 16:20:35 -04:00
genbki.pl Generate syscache info from catalog files 2024-01-23 07:31:06 +01:00
heap.c Add pg_constraint rows for not-null constraints 2024-11-08 13:28:48 +01:00
index.c Suppress new "may be used uninitialized" warning. 2024-11-02 19:42:52 -07:00
indexing.c Revert: Let table AM insertion methods control index insertion 2024-04-11 16:01:30 +03:00
information_schema.sql Add pg_constraint rows for not-null constraints 2024-11-08 13:28:48 +01:00
Makefile Put genbki.pl output into src/include/catalog/ directly 2024-03-14 07:11:21 +01:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
namespace.c Fix search_path cache initialization. 2024-10-07 17:51:14 -07:00
objectaccess.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
objectaddress.c Extend pg_get_acl() to handle sub-object IDs 2024-07-10 10:14:37 +09:00
partition.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_aggregate.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_attrdef.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_cast.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_class.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_collation.c Introduce "builtin" collation provider. 2024-03-13 23:33:44 -07:00
pg_constraint.c Add pg_constraint rows for not-null constraints 2024-11-08 13:28:48 +01:00
pg_conversion.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_db_role_setting.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_depend.c Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
pg_enum.c Allow more cases to pass the unsafe-use-of-new-enum-value restriction. 2024-03-24 14:30:29 -04:00
pg_inherits.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_largeobject.c Deduplicate code in LargeObjectExists and myLargeObjectExists. 2024-09-12 21:45:42 +09:00
pg_namespace.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_operator.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_parameter_acl.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
pg_proc.c Separate equalRowTypes() from equalTupleDescs() 2024-03-17 05:58:04 +01:00
pg_publication.c Replicate generated columns when 'publish_generated_columns' is set. 2024-11-07 08:58:49 +05:30
pg_range.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_shdepend.c Improve tracking of role dependencies of pg_init_privs entries. 2024-06-17 12:55:10 -04:00
pg_subscription.c Refactor code converting a publication name List to a StringInfo 2024-10-25 12:02:04 +09:00
pg_type.c Explicitly list dependent types as extension members in pg_depend. 2024-03-04 14:49:36 -05:00
sql_feature_packages.txt Update SQL features 2023-05-02 10:59:21 +02:00
sql_features.txt JSON_TABLE: Add support for NESTED paths and columns 2024-04-08 16:14:13 +09:00
storage.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
system_functions.sql Revert pg_wal_replay_wait() stored procedure 2024-11-04 22:47:57 +02:00
system_views.sql Add two attributes to pg_stat_database for parallel workers activity 2024-11-11 10:40:48 +09:00
toasting.c Fix data loss at inplace update after heap_update(). 2024-09-24 15:25:18 -07:00