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

Commit2d01ec0

Browse files
committed
Remove unnecessary use of trigger flag to hash plperl functions
1 parent84c123b commit2d01ec0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎src/pl/plperl/plperl.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ typedef struct plperl_proc_desc
113113

114114
/**********************************************************************
115115
* For speedy lookup, we maintain a hash table mapping from
116-
* function OID +trigger flag +user OID to plperl_proc_desc pointers.
116+
* function OID + user OID to plperl_proc_desc pointers.
117117
* The reason the plperl_proc_desc struct isn't directly part of the hash
118118
* entry is to simplify recovery from errors during compile_plperl_function.
119119
*
@@ -127,11 +127,6 @@ typedef struct plperl_proc_desc
127127
typedefstructplperl_proc_key
128128
{
129129
Oidproc_id;/* Function OID */
130-
/*
131-
* is_trigger is really a bool, but declare as Oid to ensure this struct
132-
* contains no padding
133-
*/
134-
Oidis_trigger;/* is it a trigger function? */
135130
Oiduser_id;/* User calling the function, or 0 */
136131
}plperl_proc_key;
137132

@@ -1959,7 +1954,6 @@ compile_plperl_function(Oid fn_oid, bool is_trigger)
19591954

19601955
/* Try to find function in plperl_proc_hash */
19611956
proc_key.proc_id=fn_oid;
1962-
proc_key.is_trigger=is_trigger;
19631957
proc_key.user_id=GetUserId();
19641958

19651959
proc_ptr=hash_search(plperl_proc_hash,&proc_key,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp