Skip to content

Commit 2d01ec0

Browse files
committed
Remove unnecessary use of trigger flag to hash plperl functions
1 parent 84c123b commit 2d01ec0

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
typedef struct plperl_proc_key
128128
{
129129
Oid proc_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-
Oid is_trigger; /* is it a trigger function? */
135130
Oid user_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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy