Skip to content

Commit 0d17974

Browse files
author
Vladimir Ershov
committed
put back save plan
1 parent 6e38c0f commit 0d17974

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sr_plan.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ PlannedStmt *sr_planner(Query *parse,
124124
Datum search_values[6];
125125
static bool search_nulls[6] = {false, false, false, false, false, false};
126126
bool find_ok = false;
127-
LOCKMODE heap_lock = RowExclusiveLock; /* AccessShareLock; */
127+
LOCKMODE heap_lock = AccessShareLock;
128128
Oid query_index_rel_oid;
129129
Oid sr_plans_oid;
130130
Oid schema_oid;
@@ -133,8 +133,8 @@ PlannedStmt *sr_planner(Query *parse,
133133
ScanKeyData key;
134134
List *func_name_list;
135135

136-
if(!sr_plan_write_mode)
137-
return standard_planner(parse, cursorOptions, boundParams);
136+
if(sr_plan_write_mode)
137+
heap_lock = RowExclusiveLock;
138138

139139
schema_oid = get_sr_plan_schema();
140140
if(!OidIsValid(schema_oid))

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