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 1go7hH-0002tH-NG for pgsql-general@arkaria.postgresql.org; Mon, 28 Jan 2019 14:15:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1go7hG-00037R-E8 for pgsql-general@arkaria.postgresql.org; Mon, 28 Jan 2019 14:15:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1go7hG-00036b-2n for pgsql-general@lists.postgresql.org; Mon, 28 Jan 2019 14:15:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1go7hD-0004wm-Nu for pgsql-general@postgresql.org; Mon, 28 Jan 2019 14:15:33 +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 x0SEFSVI004336; Mon, 28 Jan 2019 09:15:28 -0500 From: Tom Lane To: Josef Machytka cc: Postgres General Subject: Re: error when creating logical replication slot In-reply-to: References: Comments: In-reply-to Josef Machytka message dated "Mon, 28 Jan 2019 10:23:19 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4334.1548684928.1@sss.pgh.pa.us> Date: Mon, 28 Jan 2019 09:15:28 -0500 Message-ID: <4335.1548684928@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Josef Machytka writes: > I am implementing logical replication and today during some final tests > before implementing it to the production I have got this error when logical > replication slot on master was created. > NOTICE: 2019-01-28 09:08:22.081007+00: logical replication slot xxxxx does > not exist - creating... > ERROR: snapshot reference 0x55a52a898340 is not owned by resource owner > TopTransaction > CONTEXT: SQL statement "SELECT pg_create_logical_replication_slot('xxxxx', > 'pgoutput')" That's definitely a bug. Are you on the latest minor release of whichever release series you're using? (And which one is that?) If it is latest, please see if you can make a self-contained test case that triggers this. regards, tom lane