BUG #13513: Turning a table into a view

From: p(dot)buongiovanni(at)net-international(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #13513: Turning a table into a view
Date: 2015-07-22 08:25:38
Message-ID: 20150722082538.9705.21746@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 13513
Logged by: Piergiorgio Buongiovanni
Email address: p(dot)buongiovanni(at)net-international(dot)com
PostgreSQL version: 9.2.13
Operating system: Centos 6.4 (Final)
Description:

I create the table MyTable with a foreign key. In a second time I drop that
foreign key (using ALTER TABLE command) in order to turn the table MyTable
into a view, using the command: CREATE RULE "_RETURN" AS ON SELECT TO
MyTable DO INSTEAD...
The server doesn't allow me to esecute this command as it tells me that
there is a foreign key or a trigger on the table MyTable.
The problem does not occur if I create the table MyTable without foreign
keys at the beginnning.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2015-07-22 08:59:06 Re: BUG #13513: Turning a table into a view
Previous Message Michael Paquier 2015-07-22 07:57:47 Re: Lack of Sanity Checking in file 'pctcl.c' for PostgreSQL 9.4.x