PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID13513
PG Version9.2.13
OSCentos 6.4 (Final)
Opened2015-07-22 08:25:38+00
Reported byPiergiorgio Buongiovanni
StatusWon't Fix

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      13513
Logged by:          Piergiorgio Buongiovanni
Email address:      (redacted)
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.

Messages

DateAuthorSubject
2015-07-22 08:25:38+00p(dot)buongiovanni(at)net-international(dot)comBUG #13513: Turning a table into a view
2015-07-22 08:59:06+00Andres FreundRe: BUG #13513: Turning a table into a view
2015-07-22 09:53:16+00Piergiorgio BuongiovanniRe: BUG #13513: Turning a table into a view
2015-07-22 10:16:19+00Andres FreundRe: BUG #13513: Turning a table into a view
2015-07-22 13:42:15+00Tom LaneRe: BUG #13513: Turning a table into a view
2015-07-22 13:44:18+00Andres FreundRe: BUG #13513: Turning a table into a view