Re: SQLFunctionCache and generic plans
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: Alexander Pyhalov <a.pyhalov@postgrespro.ru>,
Pavel Stehule <pavel.stehule@gmail.com>,
Alexander Korotkov <aekorotkov@gmail.com>,
pgsql-hackers@lists.postgresql.org,
Ronan Dunklau <ronan.dunklau@aiven.io>
Date: 2025-04-09T21:01:56Z
Lists: pgsql-hackers
I wrote: > I noticed that avocet and trilobite (two of our CLOBBER_CACHE_ALWAYS > animals) have started to fail on the deadlock-parallel isolation > test, with symptoms that look like they're timing out. > ... > The simplest fix is to force that test to use debug_discard_caches=0, > but I don't love that answer. Anybody have a better idea? I thought of a better way: we can bypass the need to use a non-inlined SQL function by declaring internal-language aliases for the auxiliary-lock functions that are falsely marked parallel-safe. It's a little bit ugly (see [1]) but I think it beats not running this test under debug_discard_caches at all. regards, tom lane [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=837cc73af29cd9c63515a6f2a36f54dd703a3a3f
Commits
-
Fix performance issue in deadlock-parallel isolation test.
- 837cc73af29c 18.0 landed
-
functions.c: copy trees from source_list before parse analysis etc.
- 0f43083d16f4 18.0 landed
-
Fix oversight in commit 0dca5d68d.
- dbd437e670b8 18.0 landed
-
Change SQL-language functions to use the plan cache.
- 0dca5d68d7be 18.0 landed
-
Reordering DISTINCT keys to match input path's pathkeys
- a8ccf4e93a7e 18.0 cited