Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
2d01ec07
Commit
2d01ec07
authored
Oct 24, 2010
by
Andrew Dunstan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary use of trigger flag to hash plperl functions
parent
84c123be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
src/pl/plperl/plperl.c
src/pl/plperl/plperl.c
+1
-7
No files found.
src/pl/plperl/plperl.c
View file @
2d01ec07
...
...
@@ -113,7 +113,7 @@ typedef struct plperl_proc_desc
/**********************************************************************
* For speedy lookup, we maintain a hash table mapping from
* function OID +
trigger flag +
user OID to plperl_proc_desc pointers.
* function OID + user OID to plperl_proc_desc pointers.
* The reason the plperl_proc_desc struct isn't directly part of the hash
* entry is to simplify recovery from errors during compile_plperl_function.
*
...
...
@@ -127,11 +127,6 @@ typedef struct plperl_proc_desc
typedef
struct
plperl_proc_key
{
Oid
proc_id
;
/* Function OID */
/*
* is_trigger is really a bool, but declare as Oid to ensure this struct
* contains no padding
*/
Oid
is_trigger
;
/* is it a trigger function? */
Oid
user_id
;
/* User calling the function, or 0 */
}
plperl_proc_key
;
...
...
@@ -1959,7 +1954,6 @@ compile_plperl_function(Oid fn_oid, bool is_trigger)
/* Try to find function in plperl_proc_hash */
proc_key
.
proc_id
=
fn_oid
;
proc_key
.
is_trigger
=
is_trigger
;
proc_key
.
user_id
=
GetUserId
();
proc_ptr
=
hash_search
(
plperl_proc_hash
,
&
proc_key
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment