public inbox for [email protected]  
help / color / mirror / Atom feed
From: Shaozhong SHI <[email protected]>
To: Erik Brandsberg <[email protected]>
Cc: Greg Sabino Mullane <[email protected]>
Cc: pgsql-sql <[email protected]>
Subject: Re: Multiple sets of results from recursive query
Date: Mon, 17 Jul 2023 20:43:51 +0100
Message-ID: <CA+i5JwaTxDZ7-75m_cE7U5gqii77w5a9PRkfdBnsuyaa3C6V_Q@mail.gmail.com> (raw)
In-Reply-To: <CAFcck8G6zh-m3591uyjsBQJJtSrYc_PyZYgeWRP0QrFvp-B7rw@mail.gmail.com>
References: <CA+i5Jwa_7doLv+PJGKBDeN-K-Dn4kkqp-PxGok5N8UQWwGzzrQ@mail.gmail.com>
	<CAKAnmmKCDuNYxdum7vX=hq6RuLyTcAhoxqsg9ReC3kSMpoP=iQ@mail.gmail.com>
	<CA+i5JwZPFTMQd102mFdi8J3WgcJ4i8TKm9px0uKscWdpNKR37A@mail.gmail.com>
	<CAFcck8G6zh-m3591uyjsBQJJtSrYc_PyZYgeWRP0QrFvp-B7rw@mail.gmail.com>

On Monday, 17 July 2023, Erik Brandsberg <[email protected]> wrote:

> A quick google provides content that may help:  https://www.sisense.
> com/blog/postgres-recursive-cte/
>
> The issue is that you aren't asking a specific question with a well
> defined answer.  Provide examples of your data and what you are trying to
> achieve for the best results in a forum like this.
>
> On Mon, Jul 17, 2023 at 3:22 PM Shaozhong SHI <[email protected]>
> wrote:
>
>>
>>
>> On Monday, 17 July 2023, Greg Sabino Mullane <[email protected]> wrote:
>>
>>> What exact problem are you trying to solve? Recursive CTEs return one
>>> row per internal invocation, so they already return a "set" of results, but
>>> you could use arrays or json if you wanted to pack in extra information per
>>> returned row.
>>>
>>> On Sun, Jul 16, 2023 at 6:41 AM Shaozhong SHI <[email protected]>
>>> wrote:
>>>
>>>> Has anyone come across multiple sets of results with recursive query?
>>>>
>>>> How to handle it?
>>>>
>>>
>> Surely, there must be possible to find all route paths.
>>
>> Regards, David
>>
>
This one falls short of explaining possible other routes in network.
 http://blog.cleverelephant.ca/2010/07/network-walking-in-postgis.html

Regards, David


view thread (5+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Multiple sets of results from recursive query
  In-Reply-To: <CA+i5JwaTxDZ7-75m_cE7U5gqii77w5a9PRkfdBnsuyaa3C6V_Q@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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