Re: looping over multirange segments?

From: Ben Chobot <bench(at)silentmedia(dot)com>
To: depesz(at)depesz(dot)com
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: looping over multirange segments?
Date: 2021-07-15 14:07:12
Message-ID: 06c746e2-39e3-812f-b4b0-dd52f3a1355f@silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hubert depesz lubaczewski wrote on 7/15/21 5:15 AM:
> select * from regexp_matches(_YOUR_MULTIRANGE_::text, '[\[(][^\])]+[\])]', 'g');
>
> I wrote more, including explanation, and ready-to-use function, in here:
> https://www.depesz.com/2021/07/15/how-to-get-list-of-elements-from-multiranges/
>

So ugly.... and also so effective for my use case. Thanks!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thorsten Schöning 2021-07-15 16:29:46 pg_dumpall with individual output files per database?
Previous Message Alvaro Herrera 2021-07-15 13:41:18 Re: ERROR: cannot freeze committed xmax