pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15350: Getting invalid cache ID: 11 Errors
15+ messages / 7 participants
[nested] [flat]
Commits from this thread:
2018-09-20 6c3c9d4189 9d178fb928 98a4e814e4 de4fe83c7e Defer restoration of libraries in parallel workers.
* BUG #15350: Getting invalid cache ID: 11 Errors
@ 2018-08-24 14:45 PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 15+ messages in thread
From: PG Bug reporting form @ 2018-08-24 14:45 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: kieran.mccusker@gmail.com
The following bug has been logged on the website:
Bug reference: 15350
Logged by: Kieran McCusker
Email address: kieran.mccusker@gmail.com
PostgreSQL version: 10.5
Operating system: Fedora 28
Description:
Hi
We're using 10.5 with parallel queries enabled and the config options
#max_worker_processes = 8
#max_parallel_workers_per_gather = 2
#max_parallel_workers = 8
I'm seeing invalid cache ID: 11 errors in the log. It's only happening
occasionally (15 times today on a not very busy system). I've been following
the thread about making windowing functions et al parallel restricted - Is
this another manifestation of the problem?
On the first query setting set session max_parallel_workers to 0 more than
doubles the execution time from 208ms to 580ms so that doesn't seem
desirable, and it's not obvious to me why the second would have failed.
I'm probably being dense and if so apologies for wasting your time. I also
don't see how to create a test case sorry.
Many thanks
Kieran
A couple of example queries are :-
-----------------------------------------------------------------------------------------------
with limits as (
select min(contact_date), max(contact_date)
from q366midl.q366m1
where contact_date is not null
)
select
to_char(min,'YYYY-MM'),
'text' as format,
to_char(min,substr('YYYY-MM',1,7)) as code,
--
from limits
union all
select
to_char(max,'YYYY-MM'),
'text' as format,
to_char(max,substr('YYYY-MM',1,7)) as code,
to_char(max,'Mon YYYY') as text
from limits
order by 1
2018-08-24 13:50:28.325 BST [68794] ERROR: invalid cache ID: 11
2018-08-24 13:50:28.325 BST [68844] LOG: worker process: parallel worker
for PID 67216 (PID 68793) exited with exit code 1
2018-08-24 13:50:28.327 BST [68844] LOG: worker process: parallel worker
for PID 67216 (PID 68794) exited with exit code 1
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2018-08-23 11:04:23.020 BST [80148] ERROR: invalid cache ID: 11
2018-08-23 11:04:23.020 BST [80148] CONTEXT: parallel worker
2018-08-23 11:04:23.020 BST [80148] STATEMENT: SELECT "survey"."calls".*
FROM "survey"."calls" WHERE ((survey_state is null or survey_state not in
(500,501)) and phone_numbers @> array['07854 xxxxxx']) ORDER BY created_at
desc
2018-08-23 11:04:23.021 BST [81154] ERROR: invalid cache ID: 11
2018-08-23 11:04:23.023 BST [68844] LOG: worker process: parallel worker
for PID 80148 (PID 81153) exited with exit code 1
2018-08-23 11:04:23.023 BST [68844] LOG: worker process: parallel worker
for PID 80148 (PID 81154) exited with exit code 1
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
@ 2018-08-24 15:15 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
0 siblings, 1 reply; 15+ messages in thread
From: Tom Lane @ 2018-08-24 15:15 UTC (permalink / raw)
To: kieran.mccusker@gmail.com; +Cc: pgsql-bugs@lists.postgresql.org
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> We're using 10.5 with parallel queries enabled and the config options
> #max_worker_processes = 8
> #max_parallel_workers_per_gather = 2
> #max_parallel_workers = 8
> I'm seeing invalid cache ID: 11 errors in the log. It's only happening
> occasionally (15 times today on a not very busy system).
Interesting. Syscache 11 would be AUTHOID, which seems to be consulted
mostly for privilege checks, though there's at least one reference
during process startup.
> I've been following
> the thread about making windowing functions et al parallel restricted - Is
> this another manifestation of the problem?
No, I don't think it's that. We've seen a couple of reports of similar
failures referencing cache 42, but this is a new symptom.
> I also don't see how to create a test case sorry.
Don't suppose you'd be prepared to recompile PG to turn that ERROR into
a PANIC, and then capture a stack trace from the core dump next time
it happens?
regards, tom lane
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-08-27 21:12 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 15+ messages in thread
From: Thomas Munro @ 2018-08-27 21:12 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: kieran.mccusker@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On Sat, Aug 25, 2018 at 3:16 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> =?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> > We're using 10.5 with parallel queries enabled and the config options
> > #max_worker_processes = 8
> > #max_parallel_workers_per_gather = 2
> > #max_parallel_workers = 8
>
> > I'm seeing invalid cache ID: 11 errors in the log. It's only happening
> > occasionally (15 times today on a not very busy system).
>
> Interesting. Syscache 11 would be AUTHOID, which seems to be consulted
> mostly for privilege checks, though there's at least one reference
> during process startup.
Hi Kieran,
Are you using extensions, by any chance? If an extension were to
access the AUTHOID syscache during _PG_init(), it would fail like this
in parallel workers, because they run RestoreLibraryState() before
they run BackgroundWorkerInitializeConnectionByOid() (which runs
InitPostgres() which runs InitCatalogCache()). Oracle_fdw has this
problem (see nearby thread) and there may be others out there. The
extension wouldn't have to be used by the query that exhibited the
symptom... it could have been loaded earlier in the life of the leader
backend but caused no problem until eventually a parallel query was
launched.
We could probably improve that situation by making syscache lookups
(and probably other things too) fail when called from _PG_init() in
regular backends so that extension authors are made aware of this
hazard, or perhaps go the other way and change the order we do things
in parallel workers.
--
Thomas Munro
http://www.enterprisedb.com
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
@ 2018-08-28 02:40 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-08-28 14:31 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Kieran McCusker <kieran.mccusker@gmail.com>
2018-08-29 22:45 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-02 17:05 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Andres Freund <andres@anarazel.de>
0 siblings, 3 replies; 15+ messages in thread
From: Tom Lane @ 2018-08-28 02:40 UTC (permalink / raw)
To: Thomas Munro <thomas.munro@enterprisedb.com>; +Cc: kieran.mccusker@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> We could probably improve that situation by making syscache lookups
> (and probably other things too) fail when called from _PG_init() in
> regular backends so that extension authors are made aware of this
> hazard, or perhaps go the other way and change the order we do things
> in parallel workers.
Hmm. There's an argument to be made for the latter: we don't really
want stuff failing in parallel workers if it works fine normally.
On the other hand, it seems clear to me that we *don't* want extensions to
be doing stuff like syscache lookups in _PG_init(), because that would
prevent them from working as shared_preload_libraries entries.
And on the third hand, intentionally breaking code that used to work
isn't likely to win us many friends either. So I'm not sure that your
first option is really tenable. Perhaps we could get away with doing
it in HEAD and not back-patching ... but that does little for existing
problems.
regards, tom lane
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-08-28 14:31 ` Kieran McCusker <kieran.mccusker@gmail.com>
2018-08-29 01:38 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2 siblings, 1 reply; 15+ messages in thread
From: Kieran McCusker @ 2018-08-28 14:31 UTC (permalink / raw)
To: tgl@sss.pgh.pa.us; +Cc: pgsql-bugs@lists.postgresql.org; thomas.munro@enterprisedb.com
Yes I'm using extensions - A bunch of them but I'm guessing it's
likely ogr_fdw that will be causing the issue as I've only seen this on
days when someone has imported data using ogr_fdw.
On Tue, 28 Aug 2018, 03:40 Tom Lane, <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <thomas.munro@enterprisedb.com> writes:
> > We could probably improve that situation by making syscache lookups
> > (and probably other things too) fail when called from _PG_init() in
> > regular backends so that extension authors are made aware of this
> > hazard, or perhaps go the other way and change the order we do things
> > in parallel workers.
>
> Hmm. There's an argument to be made for the latter: we don't really
> want stuff failing in parallel workers if it works fine normally.
>
> On the other hand, it seems clear to me that we *don't* want extensions to
> be doing stuff like syscache lookups in _PG_init(), because that would
> prevent them from working as shared_preload_libraries entries.
>
> And on the third hand, intentionally breaking code that used to work
> isn't likely to win us many friends either. So I'm not sure that your
> first option is really tenable. Perhaps we could get away with doing
> it in HEAD and not back-patching ... but that does little for existing
> problems.
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-28 14:31 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Kieran McCusker <kieran.mccusker@gmail.com>
@ 2018-08-29 01:38 ` Thomas Munro <thomas.munro@enterprisedb.com>
0 siblings, 0 replies; 15+ messages in thread
From: Thomas Munro @ 2018-08-29 01:38 UTC (permalink / raw)
To: Kieran McCusker <kieran.mccusker@gmail.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On Wed, Aug 29, 2018 at 2:31 AM Kieran McCusker
<kieran.mccusker@gmail.com> wrote:
> Yes I'm using extensions - A bunch of them but I'm guessing it's likely ogr_fdw that will be causing the issue as I've only seen this on days when someone has imported data using ogr_fdw.
Bingo:
https://github.com/pramsey/pgsql-ogr-fdw/blob/v1.0.6/ogr_fdw.c#L195
--
Thomas Munro
http://www.enterprisedb.com
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-08-29 22:45 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-02 05:04 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Amit Kapila <amit.kapila16@gmail.com>
2 siblings, 1 reply; 15+ messages in thread
From: Thomas Munro @ 2018-08-29 22:45 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Kieran McCusker <kieran.mccusker@gmail.com>; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On Tue, Aug 28, 2018 at 2:40 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <thomas.munro@enterprisedb.com> writes:
> > We could probably improve that situation by making syscache lookups
> > (and probably other things too) fail when called from _PG_init() in
> > regular backends so that extension authors are made aware of this
> > hazard, or perhaps go the other way and change the order we do things
> > in parallel workers.
>
> Hmm. There's an argument to be made for the latter: we don't really
> want stuff failing in parallel workers if it works fine normally.
>
> On the other hand, it seems clear to me that we *don't* want extensions to
> be doing stuff like syscache lookups in _PG_init(), because that would
> prevent them from working as shared_preload_libraries entries.
>
> And on the third hand, intentionally breaking code that used to work
> isn't likely to win us many friends either. So I'm not sure that your
> first option is really tenable. Perhaps we could get away with doing
> it in HEAD and not back-patching ... but that does little for existing
> problems.
Ok, so I guess we should just make it work then. Here's throw-away
test patch to make "unaccent" blow up in this way, and a draft patch
to reorder things so that it works.
CREATE EXTENSION unaccent;
CREATE TABLE t AS SELECT 'hello world' AS v FROM generate_series(1, 1000000);
ANALYZE t;
EXPLAIN ANALYZE SELECT COUNT(unaccent(v)) FROM t;
--
Thomas Munro
http://www.enterprisedb.com
Attachments: download all (2 files, .tar.gz)
0001-Hack-to-make-unaccent-poke-syscache.patch (application/octet-stream, 914B) download
From deebf3f3ca297b0ed75d4522b104a2705357d92c Mon Sep 17 00:00:00 2001
From: Thomas Munro <thomas.munro@enterprisedb.com>
Date: Thu, 30 Aug 2018 10:28:01 +1200
Subject: [PATCH 1/2] Hack to make unaccent poke syscache.
---
contrib/unaccent/unaccent.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/contrib/unaccent/unaccent.c b/contrib/unaccent/unaccent.c
index 247c202755..8e921566f3 100644
--- a/contrib/unaccent/unaccent.c
+++ b/contrib/unaccent/unaccent.c
@@ -21,9 +21,18 @@
#include "tsearch/ts_public.h"
#include "utils/builtins.h"
#include "utils/regproc.h"
+#include "utils/syscache.h"
PG_MODULE_MAGIC;
+void _PG_init(void);
+
+void
+_PG_init(void)
+{
+ SearchSysCache1(PROCOID, ObjectIdGetDatum(999999));
+}
+
/*
* An unaccent dictionary uses a trie to find a string to replace. Each node
* of the trie is an array of 256 TrieChar structs; the N-th element of the
--
2.17.0
0002-Defer-restoration-of-libraries-in-parallel-workers.patch (application/octet-stream, 2.6K) download
From 9ce7f29c424595b36e455dbb927535f10845a716 Mon Sep 17 00:00:00 2001
From: Thomas Munro <thomas.munro@enterprisedb.com>
Date: Thu, 30 Aug 2018 10:21:41 +1200
Subject: [PATCH 2/2] Defer restoration of libraries in parallel workers.
Several users of extensions complained of crashes in parallel workers,
which turned out to be due to syscache access from their _PG_init()
functions. While it's not clear that we really want to encourage that
(for one thing, it means you can't load the extension via
shared_preload_libraries), it's a fairly obscure hazard that several
extensions are apparently running into, and it worked in practice
before parallelism came along. An alternative would be to make all such
extensions fail to initialize even in regular backends so that authors
are quickly made aware, but that seems a little unfriendly.
Reorder the initialization of parallel workers so that libraries are
restored after the caches are initialized, and inside a transaction.
Author: Thomas Munro
Bug: #15350
Reported-by: Kieran McCusker, Jimmy
Reviewed-by:
Discussion: https://postgr.es/m/153512195228.1489.8545997741965926448%40wrigleys.postgresql.org
---
src/backend/access/transam/parallel.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/backend/access/transam/parallel.c b/src/backend/access/transam/parallel.c
index c168118467..cdaa32e29a 100644
--- a/src/backend/access/transam/parallel.c
+++ b/src/backend/access/transam/parallel.c
@@ -1311,14 +1311,6 @@ ParallelWorkerMain(Datum main_arg)
fps->parallel_master_pid))
return;
- /*
- * Load libraries that were loaded by original backend. We want to do
- * this before restoring GUCs, because the libraries might define custom
- * variables.
- */
- libraryspace = shm_toc_lookup(toc, PARALLEL_KEY_LIBRARY, false);
- RestoreLibraryState(libraryspace);
-
/*
* Identify the entry point to be called. In theory this could result in
* loading an additional library, though most likely the entry point is in
@@ -1341,9 +1333,17 @@ ParallelWorkerMain(Datum main_arg)
*/
SetClientEncoding(GetDatabaseEncoding());
+ /*
+ * Load libraries that were loaded by original backend. We want to do
+ * this before restoring GUCs, because the libraries might define custom
+ * variables.
+ */
+ libraryspace = shm_toc_lookup(toc, PARALLEL_KEY_LIBRARY, false);
+ StartTransactionCommand();
+ RestoreLibraryState(libraryspace);
+
/* Restore GUC values from launching backend. */
gucspace = shm_toc_lookup(toc, PARALLEL_KEY_GUC, false);
- StartTransactionCommand();
RestoreGUCState(gucspace);
CommitTransactionCommand();
--
2.17.0
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-29 22:45 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
@ 2018-09-02 05:04 ` Amit Kapila <amit.kapila16@gmail.com>
0 siblings, 0 replies; 15+ messages in thread
From: Amit Kapila @ 2018-09-02 05:04 UTC (permalink / raw)
To: Thomas Munro <thomas.munro@enterprisedb.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; kieran.mccusker@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On Thu, Aug 30, 2018 at 4:16 AM Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
>
> On Tue, Aug 28, 2018 at 2:40 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Thomas Munro <thomas.munro@enterprisedb.com> writes:
> > > We could probably improve that situation by making syscache lookups
> > > (and probably other things too) fail when called from _PG_init() in
> > > regular backends so that extension authors are made aware of this
> > > hazard, or perhaps go the other way and change the order we do things
> > > in parallel workers.
> >
> > Hmm. There's an argument to be made for the latter: we don't really
> > want stuff failing in parallel workers if it works fine normally.
> >
> > On the other hand, it seems clear to me that we *don't* want extensions to
> > be doing stuff like syscache lookups in _PG_init(), because that would
> > prevent them from working as shared_preload_libraries entries.
> >
> > And on the third hand, intentionally breaking code that used to work
> > isn't likely to win us many friends either. So I'm not sure that your
> > first option is really tenable. Perhaps we could get away with doing
> > it in HEAD and not back-patching ... but that does little for existing
> > problems.
>
> Ok, so I guess we should just make it work then. Here's throw-away
> test patch to make "unaccent" blow up in this way, and a draft patch
> to reorder things so that it works.
>
+1 for reordering the things in parallel-workers. It will make the
behavior of parallel workers similar to backends. In fact, I have
proposed that myself sometime back [1] for the similar problem.
[1] - https://www.postgresql.org/message-id/CAA4eK1KH0wd3%2BtUDxMuMbqhLh0kKMu_TOfAcSVWuyfYVt9hfzQ%40mail.g...
--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-09-02 17:05 ` Andres Freund <andres@anarazel.de>
2018-09-13 01:42 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2 siblings, 1 reply; 15+ messages in thread
From: Andres Freund @ 2018-09-02 17:05 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Thomas Munro <thomas.munro@enterprisedb.com>; kieran.mccusker@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On 2018-08-27 22:40:17 -0400, Tom Lane wrote:
> Thomas Munro <thomas.munro@enterprisedb.com> writes:
> > We could probably improve that situation by making syscache lookups
> > (and probably other things too) fail when called from _PG_init() in
> > regular backends so that extension authors are made aware of this
> > hazard, or perhaps go the other way and change the order we do things
> > in parallel workers.
>
> Hmm. There's an argument to be made for the latter: we don't really
> want stuff failing in parallel workers if it works fine normally.
Yea, I guess there's an argument to be made for that.
> On the other hand, it seems clear to me that we *don't* want extensions to
> be doing stuff like syscache lookups in _PG_init(), because that would
> prevent them from working as shared_preload_libraries entries.
Yea, that doesn't seem great.
> And on the third hand, intentionally breaking code that used to work
> isn't likely to win us many friends either. So I'm not sure that your
> first option is really tenable. Perhaps we could get away with doing
> it in HEAD and not back-patching ... but that does little for existing
> problems.
I wonder if we could make it warn in all branches and error out hard in
master? That way hopefully most extensions would be fixed long before
the next release comes out, and people don't load new libraries at that
crazy a rate...
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 17:05 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Andres Freund <andres@anarazel.de>
@ 2018-09-13 01:42 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-13 01:51 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 15+ messages in thread
From: Thomas Munro @ 2018-09-13 01:42 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Kieran McCusker <kieran.mccusker@gmail.com>; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On Mon, Sep 3, 2018 at 5:05 AM Andres Freund <andres@anarazel.de> wrote:
> On 2018-08-27 22:40:17 -0400, Tom Lane wrote:
> > Thomas Munro <thomas.munro@enterprisedb.com> writes:
> > > We could probably improve that situation by making syscache lookups
> > > (and probably other things too) fail when called from _PG_init() in
> > > regular backends so that extension authors are made aware of this
> > > hazard, or perhaps go the other way and change the order we do things
> > > in parallel workers.
> >
> > Hmm. There's an argument to be made for the latter: we don't really
> > want stuff failing in parallel workers if it works fine normally.
>
> Yea, I guess there's an argument to be made for that.
>
>
> > On the other hand, it seems clear to me that we *don't* want extensions to
> > be doing stuff like syscache lookups in _PG_init(), because that would
> > prevent them from working as shared_preload_libraries entries.
>
> Yea, that doesn't seem great.
>
>
> > And on the third hand, intentionally breaking code that used to work
> > isn't likely to win us many friends either. So I'm not sure that your
> > first option is really tenable. Perhaps we could get away with doing
> > it in HEAD and not back-patching ... but that does little for existing
> > problems.
>
> I wonder if we could make it warn in all branches and error out hard in
> master? That way hopefully most extensions would be fixed long before
> the next release comes out, and people don't load new libraries at that
> crazy a rate...
Any other views? It sounds like we do want a patch like the one I
posted earlier. The question is whether we also want a new warning,
and in later releases an error. Do we really want to crack down on
extension libraries that wouldn't work in shared_preload_libraries?
What about hypothetical libraries that are smart enough to avoid
making such calls when they detect that they're running from
shared_preload_libraries -- you'd generate false warnings when loaded
the regular way.
--
Thomas Munro
http://www.enterprisedb.com
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 17:05 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Andres Freund <andres@anarazel.de>
2018-09-13 01:42 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
@ 2018-09-13 01:51 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-09-13 04:22 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-13 14:22 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Andrew Gierth <andrew@tao11.riddles.org.uk>
0 siblings, 2 replies; 15+ messages in thread
From: Tom Lane @ 2018-09-13 01:51 UTC (permalink / raw)
To: Thomas Munro <thomas.munro@enterprisedb.com>; +Cc: Andres Freund <andres@anarazel.de>; Kieran McCusker <kieran.mccusker@gmail.com>; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> ... Do we really want to crack down on
> extension libraries that wouldn't work in shared_preload_libraries?
That is, perhaps, a fair question; but I see little benefit to users
in such a library design. Most people who are using a library heavily
would likely wish to have it preloaded.
> What about hypothetical libraries that are smart enough to avoid
> making such calls when they detect that they're running from
> shared_preload_libraries -- you'd generate false warnings when loaded
> the regular way.
I find that argument too thin to take seriously. If the library
can manage that, it might as well just postpone the calls all the
time, rather than have two different operating modes that would
require separate testing. What would be the advantage of the
extra complication?
regards, tom lane
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 17:05 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Andres Freund <andres@anarazel.de>
2018-09-13 01:42 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-13 01:51 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-09-13 04:22 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-19 06:10 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
1 sibling, 1 reply; 15+ messages in thread
From: Thomas Munro @ 2018-09-13 04:22 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andres Freund <andres@anarazel.de>; Kieran McCusker <kieran.mccusker@gmail.com>; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On Thu, Sep 13, 2018 at 1:51 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <thomas.munro@enterprisedb.com> writes:
> > ... Do we really want to crack down on
> > extension libraries that wouldn't work in shared_preload_libraries?
>
> That is, perhaps, a fair question; but I see little benefit to users
> in such a library design. Most people who are using a library heavily
> would likely wish to have it preloaded.
>
> > What about hypothetical libraries that are smart enough to avoid
> > making such calls when they detect that they're running from
> > shared_preload_libraries -- you'd generate false warnings when loaded
> > the regular way.
>
> I find that argument too thin to take seriously. If the library
> can manage that, it might as well just postpone the calls all the
> time, rather than have two different operating modes that would
> require separate testing. What would be the advantage of the
> extra complication?
Ok, 0003 (attached) is a straw-man patch to log a warning. I guess it
won't be too popular with anyone who has worked on making syscache as
fast as possible.
postgres=# select unaccent('hello');
WARNING: syscache access from _PG_init() is deprecated and will not
be allowed in a future release of PostgreSQL
unaccent
----------
hello
(1 row)
You see this warning only once per library per backend (including
parallel workers, as can be tested with the same trivial query with
force_parallel_mode = on, assuming 0002 is also applied so it doesn't
crash).
--
Thomas Munro
http://www.enterprisedb.com
Attachments: download all (3 files, .tar.gz)
0001-hack-to-make-unaccent-crash-in-parallel-workers-v2.patch (application/octet-stream, 806B) download
From a9b6a61623dae2ebb05efa200b048819b5fcfd2c Mon Sep 17 00:00:00 2001
From: Thomas Munro <thomas.munro@enterprisedb.com>
Date: Thu, 13 Sep 2018 15:18:37 +1200
Subject: [PATCH 1/3] hack to make unaccent crash in parallel workers
---
contrib/unaccent/unaccent.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/contrib/unaccent/unaccent.c b/contrib/unaccent/unaccent.c
index dbf2bb9602..130e61c51b 100644
--- a/contrib/unaccent/unaccent.c
+++ b/contrib/unaccent/unaccent.c
@@ -26,6 +26,14 @@
PG_MODULE_MAGIC;
+void _PG_init(void);
+
+void
+_PG_init(void)
+{
+ SearchSysCache1(PROCOID, ObjectIdGetDatum(999999));
+}
+
/*
* An unaccent dictionary uses a trie to find a string to replace. Each node
* of the trie is an array of 256 TrieChar structs; the N-th element of the
--
2.17.0
0002-Defer-restoration-of-libraries-in-parallel-worker-v2.patch (application/octet-stream, 2.2K) download
From 4bcfbdcc88ad3d8ae1ea5f416d87deae52bcc6f8 Mon Sep 17 00:00:00 2001
From: Thomas Munro <thomas.munro@enterprisedb.com>
Date: Thu, 30 Aug 2018 10:21:41 +1200
Subject: [PATCH 2/3] Defer restoration of libraries in parallel workers.
Several users of extensions complained of crashes in parallel workers,
which turned out to be due to syscache access from their _PG_init()
functions.
Reorder the initialization of parallel workers so that libraries are
restored after the caches are initialized, and inside a transaction.
Author: Thomas Munro
Bug: #15350
Reported-by: Kieran McCusker, Jimmy
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/153512195228.1489.8545997741965926448%40wrigleys.postgresql.org
---
src/backend/access/transam/parallel.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/backend/access/transam/parallel.c b/src/backend/access/transam/parallel.c
index c168118467..cdaa32e29a 100644
--- a/src/backend/access/transam/parallel.c
+++ b/src/backend/access/transam/parallel.c
@@ -1311,14 +1311,6 @@ ParallelWorkerMain(Datum main_arg)
fps->parallel_master_pid))
return;
- /*
- * Load libraries that were loaded by original backend. We want to do
- * this before restoring GUCs, because the libraries might define custom
- * variables.
- */
- libraryspace = shm_toc_lookup(toc, PARALLEL_KEY_LIBRARY, false);
- RestoreLibraryState(libraryspace);
-
/*
* Identify the entry point to be called. In theory this could result in
* loading an additional library, though most likely the entry point is in
@@ -1341,9 +1333,17 @@ ParallelWorkerMain(Datum main_arg)
*/
SetClientEncoding(GetDatabaseEncoding());
+ /*
+ * Load libraries that were loaded by original backend. We want to do
+ * this before restoring GUCs, because the libraries might define custom
+ * variables.
+ */
+ libraryspace = shm_toc_lookup(toc, PARALLEL_KEY_LIBRARY, false);
+ StartTransactionCommand();
+ RestoreLibraryState(libraryspace);
+
/* Restore GUC values from launching backend. */
gucspace = shm_toc_lookup(toc, PARALLEL_KEY_GUC, false);
- StartTransactionCommand();
RestoreGUCState(gucspace);
CommitTransactionCommand();
--
2.17.0
0003-Log-a-WARNING-if-_PG_init-accesses-syscache-v2.patch (application/octet-stream, 3.3K) download
From f617409943eb0c24051a4d480207805f0db31171 Mon Sep 17 00:00:00 2001
From: Thomas Munro <thomas.munro@enterprisedb.com>
Date: Thu, 13 Sep 2018 16:01:54 +1200
Subject: [PATCH 3/3] Log a WARNING if _PG_init() accesses syscache.
Libraries that access syscache from _PG_init() don't work when loaded
via shared_preload_libraries. Log a warning to indicate that it will not
be allowed in a future release.
Discussion: https://postgr.es/m/153512195228.1489.8545997741965926448%40wrigleys.postgresql.org
---
src/backend/utils/cache/catcache.c | 10 ++++++++++
src/backend/utils/fmgr/dfmgr.c | 22 +++++++++++++++++++++-
src/include/fmgr.h | 1 +
3 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/src/backend/utils/cache/catcache.c b/src/backend/utils/cache/catcache.c
index 5ddbf6eab1..59f2ddd48f 100644
--- a/src/backend/utils/cache/catcache.c
+++ b/src/backend/utils/cache/catcache.c
@@ -24,6 +24,7 @@
#include "access/xact.h"
#include "catalog/pg_operator.h"
#include "catalog/pg_type.h"
+#include "fmgr.h"
#include "miscadmin.h"
#ifdef CATCACHE_STATS
#include "storage/ipc.h" /* for on_proc_exit */
@@ -1227,6 +1228,15 @@ SearchCatCacheInternal(CatCache *cache,
dlist_head *bucket;
CatCTup *ct;
+ /*
+ * Libraries' _PG_init() functions should not access syscache. While that
+ * works in a regular backend, it results in extensions that cannot be
+ * loaded via shared_preload_libraries.
+ */
+ if (unlikely(InitializingLibrary))
+ ereport(WARNING,
+ (errmsg("syscache access from _PG_init() is deprecated and will not be allowed in a future release of PostgreSQL")));
+
/* Make sure we're in an xact, even if this ends up being a cache hit */
Assert(IsTransactionState());
diff --git a/src/backend/utils/fmgr/dfmgr.c b/src/backend/utils/fmgr/dfmgr.c
index 4a5cc7cfc7..e7e946f899 100644
--- a/src/backend/utils/fmgr/dfmgr.c
+++ b/src/backend/utils/fmgr/dfmgr.c
@@ -76,6 +76,8 @@ static DynamicFileList *file_tail = NULL;
char *Dynamic_library_path;
+bool InitializingLibrary;
+
static void *internal_load_library(const char *libname);
static void incompatible_module_error(const char *libname,
const Pg_magic_struct *module_magic_data) pg_attribute_noreturn();
@@ -291,7 +293,25 @@ internal_load_library(const char *libname)
*/
PG_init = (PG_init_t) dlsym(file_scanner->handle, "_PG_init");
if (PG_init)
- (*PG_init) ();
+ {
+ /*
+ * To prevent _PG_init() functions from doing certain things,
+ * we set a global flag while running the function. For now this
+ * just triggers a warning on syscache access.
+ */
+ InitializingLibrary = true;
+ PG_TRY();
+ {
+ (*PG_init) ();
+ }
+ PG_CATCH();
+ {
+ InitializingLibrary = false;
+ PG_RE_THROW();
+ }
+ PG_END_TRY();
+ InitializingLibrary = false;
+ }
/* OK to link it into list */
if (file_list == NULL)
diff --git a/src/include/fmgr.h b/src/include/fmgr.h
index 101f513ba6..888e31ef04 100644
--- a/src/include/fmgr.h
+++ b/src/include/fmgr.h
@@ -678,6 +678,7 @@ extern bool CheckFunctionValidatorAccess(Oid validatorOid, Oid functionOid);
* Routines in dfmgr.c
*/
extern char *Dynamic_library_path;
+extern bool InitializingLibrary;
extern PGFunction load_external_function(const char *filename, const char *funcname,
bool signalNotFound, void **filehandle);
--
2.17.0
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 17:05 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Andres Freund <andres@anarazel.de>
2018-09-13 01:42 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-13 01:51 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-09-13 04:22 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
@ 2018-09-19 06:10 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-20 02:25 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
0 siblings, 1 reply; 15+ messages in thread
From: Thomas Munro @ 2018-09-19 06:10 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andres Freund <andres@anarazel.de>; Kieran McCusker <kieran.mccusker@gmail.com>; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On Thu, Sep 13, 2018 at 4:22 PM Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> On Thu, Sep 13, 2018 at 1:51 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Thomas Munro <thomas.munro@enterprisedb.com> writes:
> > > ... Do we really want to crack down on
> > > extension libraries that wouldn't work in shared_preload_libraries?
> >
> > That is, perhaps, a fair question; but I see little benefit to users
> > in such a library design. Most people who are using a library heavily
> > would likely wish to have it preloaded.
> >
> > > What about hypothetical libraries that are smart enough to avoid
> > > making such calls when they detect that they're running from
> > > shared_preload_libraries -- you'd generate false warnings when loaded
> > > the regular way.
> >
> > I find that argument too thin to take seriously. If the library
> > can manage that, it might as well just postpone the calls all the
> > time, rather than have two different operating modes that would
> > require separate testing. What would be the advantage of the
> > extra complication?
>
> Ok, 0003 (attached) is a straw-man patch to log a warning. I guess it
> won't be too popular with anyone who has worked on making syscache as
> fast as possible.
I would like to close this case, so unless anyone objects, tomorrow
I'm going to push the reordering patch (0002 in my earlier email) so
that we stop getting bug reports about extensions that crash in
parallel workers (even though we consider those extensions to be
operating out of contract). If someone wants to do a patch that will
display warnings when extensions break that rule (something like the
0003 patch I sketched), that can be done separately.
--
Thomas Munro
http://www.enterprisedb.com
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 17:05 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Andres Freund <andres@anarazel.de>
2018-09-13 01:42 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-13 01:51 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-09-13 04:22 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-19 06:10 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
@ 2018-09-20 02:25 ` Thomas Munro <thomas.munro@enterprisedb.com>
0 siblings, 0 replies; 15+ messages in thread
From: Thomas Munro @ 2018-09-20 02:25 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andres Freund <andres@anarazel.de>; Kieran McCusker <kieran.mccusker@gmail.com>; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
On Wed, Sep 19, 2018 at 6:10 PM Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> I would like to close this case, so unless anyone objects, tomorrow
> I'm going to push the reordering patch (0002 in my earlier email) so
> that we stop getting bug reports about extensions that crash in
> parallel workers (even though we consider those extensions to be
> operating out of contract). If someone wants to do a patch that will
> display warnings when extensions break that rule (something like the
> 0003 patch I sketched), that can be done separately.
Done.
--
Thomas Munro
http://www.enterprisedb.com
^ permalink raw reply [nested|flat] 15+ messages in thread
* Re: BUG #15350: Getting invalid cache ID: 11 Errors
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
2018-09-02 17:05 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Andres Freund <andres@anarazel.de>
2018-09-13 01:42 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-13 01:51 ` Re: BUG #15350: Getting invalid cache ID: 11 Errors Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-09-13 14:22 ` Andrew Gierth <andrew@tao11.riddles.org.uk>
1 sibling, 0 replies; 15+ messages in thread
From: Andrew Gierth @ 2018-09-13 14:22 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Thomas Munro <thomas.munro@enterprisedb.com>; Andres Freund <andres@anarazel.de>; Kieran McCusker <kieran.mccusker@gmail.com>; PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
Tom> That is, perhaps, a fair question; but I see little benefit to
Tom> users in such a library design. Most people who are using a
Tom> library heavily would likely wish to have it preloaded.
possible counterexample: preprepare
--
Andrew (irc:RhodiumToad)
^ permalink raw reply [nested|flat] 15+ messages in thread
end of thread, other threads:[~2018-09-20 02:25 UTC | newest]
Thread overview: 15+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24 14:45 BUG #15350: Getting invalid cache ID: 11 Errors PG Bug reporting form <noreply@postgresql.org>
2018-08-24 15:15 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-08-27 21:12 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-28 02:40 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-08-28 14:31 ` Kieran McCusker <kieran.mccusker@gmail.com>
2018-08-29 01:38 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-08-29 22:45 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-02 05:04 ` Amit Kapila <amit.kapila16@gmail.com>
2018-09-02 17:05 ` Andres Freund <andres@anarazel.de>
2018-09-13 01:42 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-13 01:51 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-09-13 04:22 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-19 06:10 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-20 02:25 ` Thomas Munro <thomas.munro@enterprisedb.com>
2018-09-13 14:22 ` Andrew Gierth <andrew@tao11.riddles.org.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox