dbTalk Databases Forums  

[BUGS] BUG #1750: recurrentive views terminates connection

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


Discuss [BUGS] BUG #1750: recurrentive views terminates connection in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bartłomiej Rychtarski
 
Posts: n/a

Default [BUGS] BUG #1750: recurrentive views terminates connection - 07-04-2005 , 08:15 AM







The following bug has been logged online:

Bug reference: 1750
Logged by: Bartłomiej Rychtarski
Email address: bartek (AT) wsb (DOT) poznan.pl
PostgreSQL version: 7.3.4
Operating system: red hat 9
Description: recurrentive views terminates connection
Details:

selecting from recurrent views couses termination of all client connections
to the postgres server:

create view test1 as
select 1::integer as id;

create view test2 as
select sum(id) as id from test1;

create or replace view test1 as
select sum(id)::integer as id from test2;

select * from test2;

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org

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

Default Re: [BUGS] BUG #1750: recurrentive views terminates connection - 07-04-2005 , 09:33 AM






"BartÅomiej Rychtarski" <bartek (AT) wsb (DOT) poznan.pl> writes:
Quote:
PostgreSQL version: 7.3.4

selecting from recurrent views couses termination of all client connections
to the postgres server:
This is fixed in 7.4 and up.

regression=# select * from test2;
ERROR: infinite recursion detected in rules for relation "test2"

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


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.