-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
postgresql: split -lib and -dev outputs cleanly #294504
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5547322
postgresql: move dynamic modules to default output
wolfgangwalther 7797728
postgresql: move libecpq to lib output
wolfgangwalther 435f51c
postgresql: split dev output
wolfgangwalther 94d432c
postgresql: remove references to llvm-dev on darwin as well
wolfgangwalther dfde86f
postgresql: refactor removal of references in bitcode files
wolfgangwalther 73cb403
postgresql: refactor to simplify condition
wolfgangwalther File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
pkgs/servers/sql/postgresql/patches/empty-pg-config-view-15+.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| Empty the pg_config system information view. This view keeps references to | ||
| several -dev outputs, which we want to avoid to keep closure size down. | ||
|
|
||
| The alternative to this patch would be to nuke references across the board, | ||
| but this will also affect the output of the pg_config utility. By emptying | ||
| the view only, we keep the pg_config binary intact. It resides in the -dev | ||
| output, so it's fine to have all those references there. | ||
|
|
||
| --- | ||
| --- a/src/backend/utils/misc/pg_config.c | ||
| +++ b/src/backend/utils/misc/pg_config.c | ||
| @@ -32,20 +32,5 @@ pg_config(PG_FUNCTION_ARGS) | ||
| /* initialize our tuplestore */ | ||
| InitMaterializedSRF(fcinfo, 0); | ||
|
|
||
| - configdata = get_configdata(my_exec_path, &configdata_len); | ||
|
wolfgangwalther marked this conversation as resolved.
Outdated
|
||
| - for (i = 0; i < configdata_len; i++) | ||
| - { | ||
| - Datum values[2]; | ||
| - bool nulls[2]; | ||
| - | ||
| - memset(values, 0, sizeof(values)); | ||
| - memset(nulls, 0, sizeof(nulls)); | ||
| - | ||
| - values[0] = CStringGetTextDatum(configdata[i].name); | ||
| - values[1] = CStringGetTextDatum(configdata[i].setting); | ||
| - | ||
| - tuplestore_putvalues(rsinfo->setResult, rsinfo->setDesc, values, nulls); | ||
| - } | ||
| - | ||
| return (Datum) 0; | ||
| } | ||
| --- a/src/test/regress/expected/sysviews.out | ||
| +++ b/src/test/regress/expected/sysviews.out | ||
| @@ -29,7 +29,7 @@ select name, ident, parent, level, total_bytes >= free_bytes | ||
| (1 row) | ||
|
|
||
| -- At introduction, pg_config had 23 entries; it may grow | ||
| -select count(*) > 20 as ok from pg_config; | ||
| +select count(*) = 0 as ok from pg_config; | ||
| ok | ||
| ---- | ||
| t | ||
| --- a/src/test/regress/sql/sysviews.sql | ||
| +++ b/src/test/regress/sql/sysviews.sql | ||
| @@ -18,7 +18,7 @@ select name, ident, parent, level, total_bytes >= free_bytes | ||
| from pg_backend_memory_contexts where level = 0; | ||
|
|
||
| -- At introduction, pg_config had 23 entries; it may grow | ||
| -select count(*) > 20 as ok from pg_config; | ||
| +select count(*) = 0 as ok from pg_config; | ||
|
|
||
| -- We expect no cursors in this test; see also portals.sql | ||
| select count(*) = 0 as ok from pg_cursors; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.