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.89) (envelope-from ) id 1hxMoi-00045i-Ug for pgsql-general@arkaria.postgresql.org; Tue, 13 Aug 2019 02:45:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hxMoh-0004pq-MM for pgsql-general@arkaria.postgresql.org; Tue, 13 Aug 2019 02:45:43 +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 1hxMoh-0004pi-DA for pgsql-general@lists.postgresql.org; Tue, 13 Aug 2019 02:45:43 +0000 Received: from ook.raf.org ([139.99.156.21]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hxMoe-0000Rl-K1 for pgsql-general@postgresql.org; Tue, 13 Aug 2019 02:45:43 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id F3EA25DEA3 for ; Tue, 13 Aug 2019 12:45:35 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S_TC8nK5_tB8 for ; Tue, 13 Aug 2019 12:45:35 +1000 (AEST) Received: by ook.raf.org (Postfix, from userid 1001) id CA9855DEBD; Tue, 13 Aug 2019 12:45:35 +1000 (AEST) Date: Tue, 13 Aug 2019 12:45:35 +1000 From: raf To: pgsql-general@postgresql.org Subject: question about client/server version mismatches Message-ID: <20190813024535.oamb7x6yx2pjaj6i@raf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, macos-10.11.6 postgresql-9.5.16 (server) postgresql-9.6.12 (client) I've just rebooted my macos laptop for the first time in months and have started having a problem loading database backups there. I get this error output: pg_restore: [archiver (db)] Error while INITIALIZING: pg_restore: [archiver (db)] could not execute query: ERROR: unrecognized configuration parameter "idle_in_transaction_session_timeout" Command was: SET idle_in_transaction_session_timeout = 0; It seems that I was using 9.6 clients and a 9.5 server. I'm not sure what the situation was before the reboot. The server was probably 9.6.12 and all was well. I never got around to fully upgrading the server (or the old version wouldn't still be there). Loading a 9.5 backup using the 9.6 pg_restore lead to the above error. Changing to 9.5 clients fixed it. Since the backup itself was from a 9.5.12 server, it seems that the 9.6 parameter, idle_in_transaction_session_timeout, must have been set by the 9.6 client even though it was connected to a 9.5 server. Is that expected behaviour? Do the clients know when each configuration parameter was introduced and only use them when connected to servers where they mean something? Or am I just misunderstaing what's happening? I would have thought a new client would be able to work with an old but supported server. It's not a big deal. I'll get around to completing the upgrade and it'll be fine again but I'm curious. cheers, raf