From 468bda8ba56d8ca4057b6e95eb748e864f37598c Mon Sep 17 00:00:00 2001 From: nidhibhammar <59045594+nidhibhammar@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:18:59 +0530 Subject: [PATCH 1/2] edb_wait_states - Added 1.3 release notes and new function Added 1.3 release notes and edb_wait_states_directory_size function as per [EXT-648](https://enterprisedb.atlassian.net/browse/EXT-648)/ [DOCS-438](https://enterprisedb.atlassian.net/browse/DOCS-438) --- .../wait_states/rel_notes/index.mdx | 1 + .../rel_notes/wait_states_1.3_rel_notes.mdx | 10 +++++++ .../pg_extensions/wait_states/using.mdx | 30 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 advocacy_docs/pg_extensions/wait_states/rel_notes/wait_states_1.3_rel_notes.mdx diff --git a/advocacy_docs/pg_extensions/wait_states/rel_notes/index.mdx b/advocacy_docs/pg_extensions/wait_states/rel_notes/index.mdx index de0be9fde69..740d6d0613a 100644 --- a/advocacy_docs/pg_extensions/wait_states/rel_notes/index.mdx +++ b/advocacy_docs/pg_extensions/wait_states/rel_notes/index.mdx @@ -8,4 +8,5 @@ The EDB Wait States documentation describes the latest version of EDB Wait State | Version | Release Date | | -------------------------------- | ------------ | +| [1.3](wait_states_1.3_rel_notes) | 23 Apr 2024 | | [1.2](wait_states_1.2_rel_notes) | 15 Feb 2024 | diff --git a/advocacy_docs/pg_extensions/wait_states/rel_notes/wait_states_1.3_rel_notes.mdx b/advocacy_docs/pg_extensions/wait_states/rel_notes/wait_states_1.3_rel_notes.mdx new file mode 100644 index 00000000000..5a827deeed0 --- /dev/null +++ b/advocacy_docs/pg_extensions/wait_states/rel_notes/wait_states_1.3_rel_notes.mdx @@ -0,0 +1,10 @@ +--- +title: Release notes for Wait States version 1.3 +navTitle: "Version 1.3" +--- + +This release of Wait States includes: + +| Type | Description | +|-------------|---------------------------------------------------------| +| Enhancement | Added new function `edb_wait_states_directory_size()`. | \ No newline at end of file diff --git a/advocacy_docs/pg_extensions/wait_states/using.mdx b/advocacy_docs/pg_extensions/wait_states/using.mdx index 57b3a624383..9a4b34ebb77 100644 --- a/advocacy_docs/pg_extensions/wait_states/using.mdx +++ b/advocacy_docs/pg_extensions/wait_states/using.mdx @@ -137,6 +137,36 @@ wait_event | PgSleep . ``` +## `edb_wait_states_directory_size` + +This function gives the size of the `$PGDATA/edb_wait_states` directory. + +```sql +edb_wait_states_directory_size( + IN start_ts timestampz default '-inifinity'::timestampz, + IN end_ts timestampz default 'infinity'::timestampz +); +``` + +The function returns the total size of all the files in the `edb_wait_states` directory in bytes. Optionally specify the `start_ts` and `end_ts` timestamps to get the file size of all the files in the specified interval. + +!!!note +This function calculates and gives the size of all the files with prefix `ews_*` only. It ignores any other file added to the `edb_wait_states` directory manually. +!!! + +### Example + +This example shows the sample output from the `edb_wait_states_directory_size()` function: + +```sql +edb=# select edb_wait_states_directory_size(); +__OUTPUT__ + edb_wait_states_directory_size + ------------------------------ + 1712256 + (1 row) +``` + ## `edb_wait_states_queries` This function gives information about the queries sampled by the BGW. For example: From 0b6bbdf058cfa527db11179f72e698d0ad910b80 Mon Sep 17 00:00:00 2001 From: nidhibhammar <59045594+nidhibhammar@users.noreply.github.com> Date: Thu, 9 May 2024 12:40:44 +0530 Subject: [PATCH 2/2] updated the release date --- advocacy_docs/pg_extensions/wait_states/rel_notes/index.mdx | 2 +- .../wait_states/rel_notes/wait_states_1.3_rel_notes.mdx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/advocacy_docs/pg_extensions/wait_states/rel_notes/index.mdx b/advocacy_docs/pg_extensions/wait_states/rel_notes/index.mdx index 740d6d0613a..0f9b5651b19 100644 --- a/advocacy_docs/pg_extensions/wait_states/rel_notes/index.mdx +++ b/advocacy_docs/pg_extensions/wait_states/rel_notes/index.mdx @@ -8,5 +8,5 @@ The EDB Wait States documentation describes the latest version of EDB Wait State | Version | Release Date | | -------------------------------- | ------------ | -| [1.3](wait_states_1.3_rel_notes) | 23 Apr 2024 | +| [1.3](wait_states_1.3_rel_notes) | 09 May 2024 | | [1.2](wait_states_1.2_rel_notes) | 15 Feb 2024 | diff --git a/advocacy_docs/pg_extensions/wait_states/rel_notes/wait_states_1.3_rel_notes.mdx b/advocacy_docs/pg_extensions/wait_states/rel_notes/wait_states_1.3_rel_notes.mdx index 5a827deeed0..51acb7b955b 100644 --- a/advocacy_docs/pg_extensions/wait_states/rel_notes/wait_states_1.3_rel_notes.mdx +++ b/advocacy_docs/pg_extensions/wait_states/rel_notes/wait_states_1.3_rel_notes.mdx @@ -2,6 +2,7 @@ title: Release notes for Wait States version 1.3 navTitle: "Version 1.3" --- +Release date: 09 May 2024 This release of Wait States includes: