pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: DAVID ROTH <adaptron@comcast.net>
To: Christophe Pettus <xof@thebuild.com>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: Using "exit" to bring "goto" functionality.
Date: Mon, 10 Jul 2023 12:29:47 -0700
Message-ID: <26cb1164-defa-3a84-b2b2-fe22092d9654@aklaver.com> (raw)
In-Reply-To: <417293360.172884.1689016086131@connect.xfinity.com>
References: <655E5E21-FCED-405F-81F6-AE2713F27337@yugabyte.com>
	<39EC45EE-8162-4B19-97C2-BE54E758B294@thebuild.com>
	<417293360.172884.1689016086131@connect.xfinity.com>

On 7/10/23 12:08, DAVID ROTH wrote:
> I am a newbe at my current job.
> They have a separate log table for every table because they want all the columns.
> I have been looking for a way to go to a common log table without requiring major changes to the application.
> 
> With your help, I have a proof of principle that I can demonstrate now.

FYI, you replied to the wrong thread.

> 
> 
> 
>> On 07/10/2023 2:58 PM EDT Christophe Pettus <xof@thebuild.com> wrote:
>>
>>   
>>> On Jul 10, 2023, at 11:54, Bryn Llewellyn <bryn@yugabyte.com> wrote:
>>>
>>> What is the rationale for supporting what seems to be on its face this strange functionality?
>>
>> It allows you to EXIT or CONTINUE a loop thaIt is not the innermost one, by naming the label of an outer loop.
>>
>> One can debate endlessly whether it's good or bad to include that functionality, but it definitely has use cases.  I would assume that at this point, it's not going anywhere.
>>
>> The relevant documentation is here:
>>
>> 	https://www.postgresql.org/docs/15/plpgsql-control-structures.html#PLPGSQL-CONTROL-STRUCTURES-LOOPS
> 
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (7+ messages)  latest in thread

Message-ID: <26cb1164-defa-3a84-b2b2-fe22092d9654@aklaver.com>
Permalink:  ../26cb1164-defa-3a84-b2b2-fe22092d9654@aklaver.com/
Also on:    postgresql.org/message-id/26cb1164-defa-3a84-b2b2-fe22092d9654@aklaver.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, adaptron@comcast.net, xof@thebuild.com, bryn@yugabyte.com
  Subject: Re: Using "exit" to bring "goto" functionality.
  In-Reply-To: <26cb1164-defa-3a84-b2b2-fe22092d9654@aklaver.com>
  References: <655E5E21-FCED-405F-81F6-AE2713F27337@yugabyte.com> <39EC45EE-8162-4B19-97C2-BE54E758B294@thebuild.com> <417293360.172884.1689016086131@connect.xfinity.com> <26cb1164-defa-3a84-b2b2-fe22092d9654@aklaver.com>

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

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