Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbYqO-0002HO-RE for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Oct 2013 16:42:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VbYqO-0004wj-9x for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Oct 2013 16:42:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbYqM-0004v5-PM for pgsql-bugs@postgresql.org; Wed, 30 Oct 2013 16:42:06 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbYqF-0006G6-Q1 for pgsql-bugs@postgresql.org; Wed, 30 Oct 2013 16:42:06 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VbYqE-0007jS-9q for pgsql-bugs@postgresql.org; Wed, 30 Oct 2013 09:41:58 -0700 Date: Wed, 30 Oct 2013 09:41:58 -0700 (PDT) From: David Johnston To: pgsql-bugs@postgresql.org Message-ID: <1383151318298-5776409.post@n5.nabble.com> In-Reply-To: References: Subject: Re: BUG #8569: with recursive work incorrectly with function MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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-tp5776396p5776409.html 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