From: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: PgSQL - SQL <pgsql-sql@postgresql.org>
Subject: Converting TBL->View complaining about indexes
Date: Fri, 24 Jun 2005 17:49:02 +0200
Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB1679E@neptun.sonorys.at> (raw)
Hi,
I'm currently trying to make a table (where many fcns depend on) become a
view.
Thus I did a _truncate_ and lots of _alter table drop constraint_ and _drop
index_
and then
CREATE OR REPLACE RULE "_RETURN" AS
ON SELECT TO "smsMessagesrewtet"
DO INSTEAD
SELECT "MessageID",.....
Postgres keeps returning
ERROR: could not convert table "smsMessagesrewtet" to a view because it has
indexes
However I am sure there are no indexes nor PK or any constraints. What else
could it be?
Thanks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: robert.koepferl@sonorys.at
Subject: Re: Converting TBL->View complaining about indexes
In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB1679E@neptun.sonorys.at>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB1679E@neptun.sonorys.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox