Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0Tvy-00051P-TT for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 14:49:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e0Tvy-00023s-AJ for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Oct 2017 14:49:02 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0Tvx-00023b-UR for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 14:49:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e0Tvq-0008CK-Rq for pgsql-bugs@postgresql.org; Fri, 06 Oct 2017 14:49:01 +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 v96EmpCo006267; Fri, 6 Oct 2017 10:48:51 -0400 From: Tom Lane To: buschmann@nidsa.net cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14844: Failure/Duplicate key value with ALTER DATABASE set search_path In-reply-to: <20171006110419.14642.67184@wrigleys.postgresql.org> References: <20171006110419.14642.67184@wrigleys.postgresql.org> Comments: In-reply-to buschmann@nidsa.net message dated "Fri, 06 Oct 2017 11:04:19 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6265.1507301331.1@sss.pgh.pa.us> Date: Fri, 06 Oct 2017 10:48:51 -0400 Message-ID: <6266.1507301331@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org buschmann@nidsa.net writes: > When trying to change or reset the search path the following error occurs > (PG 10.0): > didisdb=# ALTER DATABASE xxxdb SET search_path TO public,xxxo,xxxp; > ERROR: duplicate key value violates unique constraint > "pg_db_role_setting_databaseid_rol_index" > DETAIL: Key (setdatabase, setrole)=(19084, 0) already exists. I tried to reproduce this, but could not. Can you reconstruct the exact sequence of commands you issued to get here? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs