Re: BUG #14791: Error 42P07 but the relation DOESN'T Exists! Error 42P01

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: jfblazquez(dot)ayesa(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14791: Error 42P07 but the relation DOESN'T Exists! Error 42P01
Date: 2017-08-30 23:46:28
Message-ID: 20170830234628.5ar7na2v7g6nrva5@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

jfblazquez(dot)ayesa(at)gmail(dot)com wrote:

> I was creating tables using scripts via pgAdmin when it suddenly crashed
> while creating a table: "scada_equipment_instance"
>
> After restarting pgAdmin and psql service, I can't create or use
> "scada_equipment_instance" table anymore. It says:
>
> ERROR: la relación «scada_equipment_instance» ya existe
> SQL state: 42P07

[Translation: relation "scada_equipment_instance" already exists]

Juan Francisco followed up to the moderator address to indicate that he
found the problem -- there's a constraint that uses the same name as the
table, causing the error.

Case closed.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniele Varrazzo 2017-08-31 00:41:19 macro concatenation fools gettext
Previous Message Michael Paquier 2017-08-30 22:15:20 Re: BUG #14792: Invalid ssleay32.dll