dbTalk Databases Forums  

[BUGS] BUG #2215: Cannot restore backup cause of view's representaion

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2215: Cannot restore backup cause of view's representaion in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sokolov Yura
 
Posts: n/a

Default [BUGS] BUG #2215: Cannot restore backup cause of view's representaion - 01-26-2006 , 10:04 AM







The following bug has been logged online:

Bug reference: 2215
Logged by: Sokolov Yura
Email address: funny_falcon (AT) mail (DOT) ru
PostgreSQL version: 8.1.2
Operating system: Windows XP SP2, Slackware 10.2
Description: Cannot restore backup cause of view's representaion
Details:

View's text representation is wrong, when row_value used inside a view.

Example:

--Create table and view

create table test
(
i int4,
j int4
);

create view test_v as
select (r.t).i,(r.t).j
from (select t.i,t.j,t from test t) r
where r.i = 1;

/*
-- this is what pgadmin and plain text dump show
CREATE VIEW test_v AS
SELECT (r.t).i AS i, (r.t).j AS j FROM (SELECT t.i, t.j, t.* AS t FROM
test t) r WHERE (r.i = 1);
*/

/*
-- this is how pg_restore throw pgadmin scold
pg_restore: [archiver (db)] could not execute query: ERROR: column r.t does
not exist
Command was: CREATE VIEW test_v AS
SELECT (r.t).i AS i, (r.t).j AS j FROM (SELECT t.i, t.j, t.* AS t FROM
test t) r WHERE (r.i = 1);
*/

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2215: Cannot restore backup cause of view's representaion - 01-26-2006 , 11:09 AM






"Sokolov Yura" <funny_falcon (AT) mail (DOT) ru> writes:
Quote:
View's text representation is wrong, when row_value used inside a view.
Fixed for next release. Thanks for the report!

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.