pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #8569: with recursive work incorrectly with function
2+ messages / 2 participants
[nested] [flat]

* BUG #8569: with recursive work incorrectly with function
@ 2013-10-30 02:29  fanjing09@gmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: fanjing09@gmail.com @ 2013-10-30 02:29 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      8569
Logged by:          Jing Fan
Email address:      fanjing09@gmail.com
PostgreSQL version: 9.1.9
Operating system:   ubuntu 13.04
Description:        

with recursive table as(
seed statement
union all
recursive statement
)
in the recursive statement, I use functions, that is select * from
functionname(). I tried the function seperately and it can return correct
result. However, the query just stopped recursion when new tuples are still
generated from recursive statement.(actually the recursive part is just
executed once). I wonder whether it is a bug?



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #8569: with recursive work incorrectly with function
@ 2013-10-30 16:41  David Johnston <polobo@yahoo.com>
  parent: fanjing09@gmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: David Johnston @ 2013-10-30 16:41 UTC (permalink / raw)
  To: pgsql-bugs

fanjing09 wrote
> The following bug has been logged on the website:
> 
> Bug reference:      8569
> Logged by:          Jing Fan
> Email address:      

> fanjing09@

> PostgreSQL version: 9.1.9
> Operating system:   ubuntu 13.04
> Description:        
> 
> with recursive table as(
> seed statement
> union all
> recursive statement
> )
> in the recursive statement, I use functions, that is select * from
> functionname(). I tried the function seperately and it can return correct
> result. However, the query just stopped recursion when new tuples are
> still
> generated from recursive statement.(actually the recursive part is just
> executed once). I wonder whether it is a bug?

We need to see the actual query you are running AND the "CREATE FUNCTION"
statement that you are using in the recursive part of the query.

It is likely not a bug but rather some combination of function volatility
and/or an incorrect query that is causing the problem.

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-8569-with-recursive-work-incorrectly-with-function-tp577...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-10-30 16:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-10-30 02:29 BUG #8569: with recursive work incorrectly with function fanjing09@gmail.com
2013-10-30 16:41 ` David Johnston <polobo@yahoo.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox