Skip site navigation (1) Skip section navigation (2)

BUG #4688: Bug in cache.

From: "Oleg" <serovOv(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4688: Bug in cache.
Date: 2009-03-03 10:48:39
Message-ID: 200903031048.n23Amd97002744@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      4688
Logged by:          Oleg
Email address:      serovOv(at)gmail(dot)com
PostgreSQL version: last stable
Operating system:   CentOS
Description:        Bug in cache.
Details: 

Demo sql:
ROLLBACK;
BEGIN;

CREATE TABLE bug_composite_type (
	text character varying(50)
);

CREATE TABLE bug_list (
	test bug_composite_type
);

INSERT INTO bug_list VALUES (ROW('text'));

ALTER TABLE bug_composite_type RENAME TO tmp_table;

CREATE TABLE bug_composite_type
(
	text character varying(250)
);

CREATE CAST (tmp_table AS composite_ad_texts)
    WITHOUT FUNCTION AS ASSIGNMENT;


ALTER TABLE bug_list ALTER test TYPE composite_ad_texts;

DROP CAST (tmp_table AS composite_ad_texts);
DROP TABLE tmp_table;

SELECT * FROM bug_list; -- bug 
-- ERROR:  could not open relation with OID 395705050

Responses

pgsql-bugs by date

Next:From: Heikki LinnakangasDate: 2009-03-03 11:21:30
Subject: Re: BUG #4688: Bug in cache.
Previous:From: Dr. Björn WeitzigDate: 2009-03-03 08:57:38
Subject: Re: BUG #4638: Bug with Geometry in Array

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group