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

Commit5a6f9bc

Browse files
committed
Mark inet_server_addr() and inet_server_port() as parallel-restricted.
These need to be PR because they access the MyProcPort data structure,which doesn't get copied to parallel workers. The very similarfunctions inet_client_addr() and inet_client_port() are alreadymarked PR, but somebody missed these.Although this is a pre-existing bug, we can't readily fix it in the backbranches since we can't force initdb. Given the small usage of thesetwo functions, and the even smaller likelihood that they'd get pushed toa parallel worker anyway, it doesn't seem worth the trouble to suggestthat DBAs should fix it manually.Masahiko SawadaDiscussion:https://postgr.es/m/CAD21AoAT4aHP0Uxq91qpD7NL009tnUYQe-b14R3MnSVOjtE71g@mail.gmail.com
1 parent8b411b8 commit5a6f9bc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎src/include/catalog/catversion.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/*yyyymmddN */
56-
#defineCATALOG_VERSION_NO202012293
56+
#defineCATALOG_VERSION_NO202101131
5757

5858
#endif

‎src/include/catalog/pg_proc.dat‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4082,10 +4082,12 @@
40824082
prosrc => 'inet_client_port' },
40834083
{ oid => '2198', descr => 'inet address of the server',
40844084
proname => 'inet_server_addr', proisstrict => 'f', provolatile => 's',
4085-
prorettype => 'inet', proargtypes => '', prosrc => 'inet_server_addr' },
4085+
proparallel => 'r', prorettype => 'inet', proargtypes => '',
4086+
prosrc => 'inet_server_addr' },
40864087
{ oid => '2199', descr => 'server\'s port number for this connection',
40874088
proname => 'inet_server_port', proisstrict => 'f', provolatile => 's',
4088-
prorettype => 'int4', proargtypes => '', prosrc => 'inet_server_port' },
4089+
proparallel => 'r', prorettype => 'int4', proargtypes => '',
4090+
prosrc => 'inet_server_port' },
40894091

40904092
{ oid => '2627',
40914093
proname => 'inetnot', prorettype => 'inet', proargtypes => 'inet',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp