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-6601: Add prefix to global variables and functions.#58

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
shinderuk merged 1 commit intomasterfromprefix-globals
Sep 2, 2022

Conversation

@shinderuk
Copy link
Contributor

This is necessary to avoid name collision with other modules. Where possible,
make variables and functions static.

Before:

% nm -gU pg_wait_sampling.so                                            00000000000014cc T _Pg_magic_func00000000000014f8 T __PG_init0000000000002bec T _alloc_history00000000000014d8 T _check_shmem0000000000008020 S _collector_hdr0000000000002c24 T _collector_main0000000000008010 S _collector_mq000000000000210c T _init_lock_tag0000000000001d04 T _pg_finfo_pg_wait_sampling_get_current0000000000002764 T _pg_finfo_pg_wait_sampling_get_history0000000000002124 T _pg_finfo_pg_wait_sampling_get_profile000000000000269c T _pg_finfo_pg_wait_sampling_reset_profile0000000000001d10 T _pg_wait_sampling_get_current0000000000002770 T _pg_wait_sampling_get_history0000000000002130 T _pg_wait_sampling_get_profile00000000000026a8 T _pg_wait_sampling_reset_profile0000000000008018 S _proc_queryids0000000000008038 S _queueTag0000000000008028 S _recv_mq0000000000008030 S _recv_mqh0000000000002b38 T _register_wait_collector0000000000008000 S _shmem_initialized0000000000008008 S _toc

After:

% nm -gU pg_wait_sampling.so                                                0000000000001560 T _Pg_magic_func000000000000156c T __PG_init0000000000001d74 T _pg_finfo_pg_wait_sampling_get_current00000000000027dc T _pg_finfo_pg_wait_sampling_get_history0000000000002194 T _pg_finfo_pg_wait_sampling_get_profile000000000000270c T _pg_finfo_pg_wait_sampling_reset_profile0000000000001d80 T _pg_wait_sampling_get_current00000000000027e8 T _pg_wait_sampling_get_history00000000000021a0 T _pg_wait_sampling_get_profile0000000000002718 T _pg_wait_sampling_reset_profile0000000000008010 S _pgws_collector_hdr0000000000002c64 T _pgws_collector_main0000000000008000 S _pgws_collector_mq000000000000217c T _pgws_init_lock_tag0000000000008008 S _pgws_proc_queryids0000000000002bb0 T _pgws_register_wait_collector

This is necessary to avoid name collision with other modules. Where possible,make variables and functions static.
@shinderukshinderuk merged commit2d6f012 intomasterSep 2, 2022
@shinderukshinderuk deleted the prefix-globals branchSeptember 2, 2022 16:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@maksm90maksm90maksm90 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@shinderuk@maksm90

[8]ページ先頭

©2009-2025 Movatter.jp