From: Jeff Frost <jeff@pgexperts.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15299: relation does not exist errors
Date: Sun, 19 Aug 2018 18:48:14 -0700
Message-ID: <67DE56DF-0DA6-48B6-9FC1-608AE5462D58@pgexperts.com> (raw)
In-Reply-To: <039A9034-96E6-4FF3-AB82-9E24C2F89B32@pgexperts.com>
References: <153262312335.1404.10540240090445927053@wrigleys.postgresql.org>
<17754.1532623813@sss.pgh.pa.us>
<F8F8913D-3491-471A-A9D6-4C36CE9F786D@pgexperts.com>
<32321.1532632475@sss.pgh.pa.us>
<38FCBCD9-0145-4CCD-8A9A-496E532F0AAE@pgexperts.com>
<20180726202323.opsdqnkg2vfo4wxs@alap3.anarazel.de>
<039A9034-96E6-4FF3-AB82-9E24C2F89B32@pgexperts.com>
> On Jul 26, 2018, at 1:53 PM, Jeff Frost <jeff@pgexperts.com> wrote:
>
> On Jul 26, 2018, at 1:23 PM, Andres Freund <andres@anarazel.de> wrote:
>>
>> On 2018-07-26 13:18:33 -0700, Jeff Frost wrote:
>>> Oh, I see what you're saying. Don't the autovacuum processes connect to their own backends which then exit after they're complete though?
>>
>> Yes, that's right. Creating an extension or calling a function that
>> internally does a SET search_path seem like a more likely cause.
>
> I grepped our code and didn't find anywhere that we set search_path, though it's possible some ruby gem we use could be doing it. I'll go spelunking there next!
Wanted to close the loop on this. As usual, Tom was right.
We have a rake task in the application used to pull a production copy of structure.sql which uses pg_dump under the covers. Because it uses the same conninfo as the app, it happily goes through pgbouncer. So, when that rake task is run, pg_dump connects through pgbouncer and happily sets that restrictive search_path. It then creates the schema-only dump and upon completion, that connection is returned to the pool as a big fat boobytrap for the next application connection.
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: jeff@pgexperts.com, andres@anarazel.de, tgl@sss.pgh.pa.us
Subject: Re: BUG #15299: relation does not exist errors
In-Reply-To: <67DE56DF-0DA6-48B6-9FC1-608AE5462D58@pgexperts.com>
References: <153262312335.1404.10540240090445927053@wrigleys.postgresql.org> <17754.1532623813@sss.pgh.pa.us> <F8F8913D-3491-471A-A9D6-4C36CE9F786D@pgexperts.com> <32321.1532632475@sss.pgh.pa.us> <38FCBCD9-0145-4CCD-8A9A-496E532F0AAE@pgexperts.com> <20180726202323.opsdqnkg2vfo4wxs@alap3.anarazel.de> <039A9034-96E6-4FF3-AB82-9E24C2F89B32@pgexperts.com> <67DE56DF-0DA6-48B6-9FC1-608AE5462D58@pgexperts.com>
* 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