Skip to content

Conversation

@knizhnik
Copy link

@knizhnik knizhnik commented Dec 4, 2024

No description provided.

@knizhnik knizhnik force-pushed the pgstat_aux_file_v17 branch 2 times, most recently from 327b80b to 55b44ec Compare December 16, 2024 07:28
@knizhnik knizhnik force-pushed the pgstat_aux_file_v17 branch from c83b703 to 27ca388 Compare December 18, 2024 09:42
@knizhnik knizhnik force-pushed the pgstat_aux_file_v17 branch from 0cdc60c to b370789 Compare January 14, 2025 06:02
@knizhnik knizhnik force-pushed the pgstat_aux_file_v17 branch from b370789 to e712066 Compare January 21, 2025 06:54
@knizhnik knizhnik force-pushed the pgstat_aux_file_v17 branch 2 times, most recently from c853efe to e07a163 Compare January 29, 2025 17:23
@knizhnik knizhnik force-pushed the pgstat_aux_file_v17 branch 2 times, most recently from 05e5372 to bb6be5f Compare February 10, 2025 16:02
@knizhnik knizhnik force-pushed the pgstat_aux_file_v17 branch 2 times, most recently from 05eb426 to f6ea453 Compare February 16, 2025 16:08
Do not wallog AUX files at replica

Update src/backend/replication/logical/message.c

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>

Update src/backend/replication/logical/message.c

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>

Add wallog_file_removal function

Do small refactoring

Update src/backend/replication/logical/message.c

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>

Update src/backend/access/heap/rewriteheap.c

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>

Address review comments

Address review comments

Do no touch file position in wallog_file_descriptor

Add include header for fstat

Fix indentation amd mistypings

Increase neon_pgstat_file_size_limit to 8Mb

Update src/backend/access/transam/xlog.c

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>

Fix indentation

Do not wallog pgstat file if neon_pgstat_file_size_limit is zero

Increase default value of neon_pgstat_file_size_limit to 16Mb

Update src/backend/access/transam/xlog.c

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>

Update src/backend/access/heap/rewriteheap.c

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>

Update src/backend/replication/logical/message.c

Co-authored-by: Heikki Linnakangas <heikki@neon.tech>

Address review comments

Disable persisting pgstat file by default
@knizhnik knizhnik force-pushed the pgstat_aux_file_v17 branch from f6ea453 to 59b2fe8 Compare February 19, 2025 20:08
github-merge-queue bot pushed a commit to neondatabase/neon that referenced this pull request Feb 20, 2025
## Problem

Statistic is saved in local file and so lost on compute restart.

Persist in in page server using the same AUX file mechanism used for
replication slots

See more about motivation in
https://neondb.slack.com/archives/C04DGM6SMTM/p1703077676522789

## Summary of changes

Persist postal file using AUX mechanism


Postgres PRs:
neondatabase/postgres#547
neondatabase/postgres#446
neondatabase/postgres#445

Related to #6684 and #6228

Co-authored-by: Konstantin Knizhnik <knizhnik@neon.tech>
@knizhnik knizhnik merged commit 59b2fe8 into REL_17_STABLE_neon Feb 20, 2025
1 check passed
@knizhnik knizhnik deleted the pgstat_aux_file_v17 branch February 20, 2025 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants