pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: kieran.mccusker@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15350: Getting invalid cache ID: 11 Errors
Date: Mon, 27 Aug 2018 22:40:17 -0400
Message-ID: <20462.1535424017@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=0oE9agBZKkt11w6S29msav3sUErSUJgMmLqMf6JVYY7Q@mail.gmail.com>
References: <153512195228.1489.8545997741965926448@wrigleys.postgresql.org>
	<12945.1535123753@sss.pgh.pa.us>
	<CAEepm=0oE9agBZKkt11w6S29msav3sUErSUJgMmLqMf6JVYY7Q@mail.gmail.com>

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




view thread (15+ messages)  latest in thread

Message-ID: <20462.1535424017@sss.pgh.pa.us>
Permalink:  ../20462.1535424017@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20462.1535424017@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com
  Subject: Re: BUG #15350: Getting invalid cache ID: 11 Errors
  In-Reply-To: <20462.1535424017@sss.pgh.pa.us>
  References: <153512195228.1489.8545997741965926448@wrigleys.postgresql.org> <12945.1535123753@sss.pgh.pa.us> <CAEepm=0oE9agBZKkt11w6S29msav3sUErSUJgMmLqMf6JVYY7Q@mail.gmail.com> <20462.1535424017@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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