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

Commitdcf5e31

Browse files
committed
PL/Python: Remove procedure cache invalidation
This was added to react to changes in the pg_transform catalog, butbuilding with CLOBBER_CACHE_ALWAYS showed that PL/Python was notprepared for having its procedure cache cleared. Since this is amarginal use case, and we don't do this for other catalogs anyway, wecan postpone this to another day.
1 parent4af6e61 commitdcf5e31

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

‎src/pl/plpython/plpy_procedure.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
staticHTAB*PLy_procedure_cache=NULL;
3030

3131
staticPLyProcedure*PLy_procedure_create(HeapTupleprocTup,Oidfn_oid,boolis_trigger);
32-
staticvoidinvalidate_procedure_caches(Datumarg,intcacheid,uint32hashvalue);
3332
staticboolPLy_procedure_argument_valid(PLyTypeInfo*arg);
3433
staticboolPLy_procedure_valid(PLyProcedure*proc,HeapTupleprocTup);
3534
staticchar*PLy_procedure_munge_source(constchar*name,constchar*src);
@@ -45,29 +44,6 @@ init_procedure_caches(void)
4544
hash_ctl.entrysize=sizeof(PLyProcedureEntry);
4645
PLy_procedure_cache=hash_create("PL/Python procedures",32,&hash_ctl,
4746
HASH_ELEM |HASH_BLOBS);
48-
CacheRegisterSyscacheCallback(TRFTYPELANG,
49-
invalidate_procedure_caches,
50-
(Datum)0);
51-
}
52-
53-
staticvoid
54-
invalidate_procedure_caches(Datumarg,intcacheid,uint32hashvalue)
55-
{
56-
HASH_SEQ_STATUSstatus;
57-
PLyProcedureEntry*hentry;
58-
59-
Assert(PLy_procedure_cache!=NULL);
60-
61-
/* flush all entries */
62-
hash_seq_init(&status,PLy_procedure_cache);
63-
64-
while ((hentry= (PLyProcedureEntry*)hash_seq_search(&status)))
65-
{
66-
if (hash_search(PLy_procedure_cache,
67-
(void*)&hentry->key,
68-
HASH_REMOVE,NULL)==NULL)
69-
elog(ERROR,"hash table corrupted");
70-
}
7147
}
7248

7349
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp