Re: Table both does not and does exist! wth?

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: pgsql-general(at)postgresql(dot)org MIME-Version: 1(dot)0 Content-Type: multipart/alternative; boundary="0-2068309836-1292600864=:15457" X-Virus-Scanned: Maia Mailguard 1(dot)0(dot)1 X-Mailing-List: pgsql-general List-Archive: <http://archives(dot)postgresql(dot)org/pgsql-general> List-Help: <mailto:majordomo(at)postgresql(dot)org?body=help> List-ID: <pgsql-general(dot)postgresql(dot)org> List-Owner: <mailto:pgsql-general-owner(at)postgresql(dot)org> List-Post: <mailto:pgsql-general(at)postgresql(dot)org> List-Subscribe: <mailto:majordomo(at)postgresql(dot)org?body=sub%20pgsql-general> List-Unsubscribe: <mailto:majordomMelvin Davidson <melvin6925(at)yahoo(dot)com>
Subject: Re: Table both does not and does exist! wth?
Date: 2010-12-17 16:19:19
Message-ID: 42849ffb0598edd1004fa466e17a5dce@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

> enf=# DROP TABLE IF EXISTS xtmp_changed_ids;
> NOTICE: table "xtmp_changed_ids" does not exist, skipping
> DROP TABLE
> enf=# CREATE TABLE xtmp_changed_ids
> (seq_all SERIAL NOT NULL,
...
> NOTICE: CREATE TABLE will create implicit sequence...
> NOTICE: CREATE TABLE / PRIMARY KEY will create implicit
> index "xtmp_changed_ids" for table "xtmp_changed_ids"
> ERROR: relation "xtmp_changed_ids" already exists

This seems to indicate it's the xtmp_changed_ids INDEX that
already exists, not the xtmp_changed_ids TABLE. If it was the
table, we'd presumably see the ERROR appear before the
NOTICE (as the table is created first, and then the indexes).
Thus, make sure you don't have an index named xtmp_changed_ids
somewhere already: \di xtmp_changed_ids

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201012171118
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAk0LjWYACgkQvJuQZxSWSsh/tgCgtKx53lBBjcbTR1178t1ZpLJL
JIUAn0giUTyphUX7D0KGDzb1C7bK0nw5
=n8OS
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2010-12-17 16:23:38 Re: Table both does not and does exist! wth?
Previous Message Melvin Davidson 2010-12-17 16:16:52 Re: Table both does not and does exist! wth?