Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YxbRz-0005ce-F0 for pgsql-general@arkaria.postgresql.org; Wed, 27 May 2015 13:32:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YxbRy-0006RV-G0 for pgsql-general@arkaria.postgresql.org; Wed, 27 May 2015 13:32:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxbRw-0006RO-QF for pgsql-general@postgresql.org; Wed, 27 May 2015 13:32:49 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YxbRp-0001AB-Fh for pgsql-general@postgresql.org; Wed, 27 May 2015 13:32:47 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 59F8320B6D for ; Wed, 27 May 2015 09:32:39 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 27 May 2015 09:32:39 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=ZZjAkjnFt2RARFQL7HeA7uHpeJQ=; b=Vy16IE 4DNojf0TKK1M8HVIDRWO9uzjn5dPw929+NO1Aa3Mv0xKXDJAuX+jlMqkED0hnW1B I3Z2rd/m1KgU1eXvMgkkx2Bw/pL0/dfT9JqD4s6jo1ocTGSTuVOuJmTa5aUvVfaB t/gl3Cv66cjz+Bh+SYWFuqfjoZJEfuyXtggss= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ZZjAkjnFt2RARFQ L7HeA7uHpeJQ=; b=USFif8EFvwtRf3m2aJ18vAQ8MwYvari7KHR4SnZmaEur0ck KrVqaIarqnPxjutRxXL3NPTW4gA068kYpXhJgAsjHqFo3Q8RiN8FxMa8yW3vgeXw qZvLfvhbOfOouo0xzyb9epMr5EbolCLdPXlAbjDKlXvHVR022PowrUn2MYnk= X-Sasl-enc: kTcz+jFcZjBTLKLeXISc/bSQ9sRoBxlXiZdlOqvqEx+g 1432733558 Received: from [192.168.1.2] (unknown [174.21.228.230]) by mail.messagingengine.com (Postfix) with ESMTPA id 9F61CC00019; Wed, 27 May 2015 09:32:38 -0400 (EDT) Message-ID: <5565C775.3070609@aklaver.com> Date: Wed, 27 May 2015 06:32:37 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Melvin Davidson , Mitu Verma CC: "pgsql-general@postgresql.org" Subject: Re: duplicate key value violates unique constraint "pg_class_relname_nsp_index" References: <84BC7AB0D621A74893EC9C9E151293B0226AD107@ESESSMB207.ericsson.se> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 05/27/2015 06:05 AM, Melvin Davidson wrote: > What this indicates is that someone, or some thing, is trying to create > a table in a schema that already exists. The error you see in that situation is: postgres-2015-05-27 06:25:10.173 PDT-0ERROR: relation "table1" already exists postgres-2015-05-27 06:25:10.173 PDT-0STATEMENT: create table table1 (i int); Best guess is as Pete and Albe said, some user code is directly accessing pg_class or the index has been corrupted. > Here is the structure of pg_class_relname_nsp_index: > CREATE UNIQUE INDEX pg_class_relname_nsp_index ON pg_class USING btree > (relname, relnamespace) > > What you should also see in the error log is a line immediately > following that error which shows you exactly what the conflict is, but > you have not provided that to us. > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general