Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PGPRO-5691] move mmapped ptrack map into shared postgres memory#19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kulaginm merged 6 commits intomasterfrompgpro-5691
Feb 28, 2022
Merged
Show file tree
Hide file tree
Changes from1 commit
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
PrevPrevious commit
NextNext commit
[PGPRO-5691]
* fix tap test (remove checking of ptrack.map.mmap file)* cosmetic change (minimize diff with master)
  • Loading branch information
@kulaginm
kulaginm committedFeb 10, 2022
commitdbf14355e1c49cd65ac5e3ebc7a27cfe86f7c811
3 changes: 1 addition & 2 deletionsengine.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -98,8 +98,7 @@ extern PtrackMap ptrack_map;
* Size of ptrack map in bytes
* TODO: to be protected by PtrackResizeLock?
*/
extern uint64ptrack_map_size;
extern uint64 *ptrack_map_size_requested_at_startup;
extern uint64 ptrack_map_size;
extern intptrack_map_size_tmp;

extern void ptrackCheckpoint(void);
Expand Down
6 changes: 3 additions & 3 deletionsptrack.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -58,9 +58,9 @@

PG_MODULE_MAGIC;

PtrackMapptrack_map = NULL;
uint64ptrack_map_size = 0;
intptrack_map_size_tmp;
PtrackMapptrack_map = NULL;
uint64ptrack_map_size = 0;
intptrack_map_size_tmp;

static shmem_startup_hook_type prev_shmem_startup_hook = NULL;
static copydir_hook_type prev_copydir_hook = NULL;
Expand Down
1 change: 0 additions & 1 deletiont/001_basic.pl
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -155,7 +155,6 @@
# Check that we have lost everything
ok(! -f $node->data_dir . "/global/ptrack.map", "ptrack.map should be cleaned up");
ok(! -f $node->data_dir . "/global/ptrack.map.tmp", "ptrack.map.tmp should be cleaned up");
ok(! -f $node->data_dir . "/global/ptrack.map.mmap", "ptrack.map.mmap should be cleaned up");

($res, $res_stdout, $res_stderr) = $node->psql("postgres", "SELECT ptrack_get_pagemapset('0/0')");
is($res, 3, 'errors out if ptrack is disabled');
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp