Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEZYN-0002hF-Pw for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Mar 2020 14:20:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEZYM-0004fm-Iw for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Mar 2020 14:20:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEZYM-0004dw-BG for pgsql-bugs@lists.postgresql.org; Wed, 18 Mar 2020 14:20:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEZYK-0002Ft-3z for pgsql-bugs@lists.postgresql.org; Wed, 18 Mar 2020 14:20:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 02IEK9S0000942; Wed, 18 Mar 2020 10:20:09 -0400 From: Tom Lane To: Daniel Gustafsson cc: chandu_munnu@yahoo.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16308: pg_restore: [archiver (db)] could not execute query: ERROR: unrecognized configuration parameter "i In-reply-to: <0980BAC2-C30E-4439-A1D0-BE4FA4EF5666@yesql.se> References: <16308-74f9ff953018bafa@postgresql.org> <0980BAC2-C30E-4439-A1D0-BE4FA4EF5666@yesql.se> Comments: In-reply-to Daniel Gustafsson message dated "Wed, 18 Mar 2020 13:49:05 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <940.1584541209.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Mar 2020 10:20:09 -0400 Message-ID: <941.1584541209@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Daniel Gustafsson writes: > On 18 Mar 2020, at 13:12, PG Bug reporting form = wrote: >> pg_restore: [archiver (db)] Error while PROCESSING TOC: >> pg_restore: [archiver (db)] Error from TOC entry 3796; 0 0 SEARCHPATH >> SEARCHPATH >> pg_restore: [archiver (db)] could not execute query: ERROR: unrecogniz= ed >> configuration parameter "idle_in_transaction_session_timeout" >> Command was: SET idle_in_transaction_session_timeout =3D 0; > idle_in_transaction_session_timeout only exist starting with 9.6, so it = sounds > like you are restoring a dump made by a newer version of pg_dump. You s= hould > be using the version of pg_dump which match the server version you are > restoring into. Or, if that's the only error you get, you could just ignore it. It's harmless enough, as long as you don't insist on a single-transaction restore. (If you do need that, dump pg_restore's output into a file and remove the offending SET.) > On that note, it seems that the 9.4 and 9.5 release notes reference the = GUC in > question, even though the commit message correctly states the GUC is onl= y in > 9.6 and newer. To avoid confusion, I suggest that we remove the referen= ce in > the back-branches as per the attached. My bad, I'll see about fixing that (in 9.5; it's too late for 9.4). regards, tom lane