pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Example code Re: Singleton SELECT inside cursor loop
Date: Sat, 1 Oct 2022 12:13:34 -0500
Message-ID: <f8f50eb5-28d2-25d9-aa0a-eed150f17aad@gmail.com> (raw)
In-Reply-To: <20221001122000.jq7f5wnmzbewimpn@hjp.at>
References: <ee9f6dc7-281d-f2a1-2556-54d36fd96e91@gmail.com>
	<d0f2c884-db0f-826f-a4e2-24a5e31130d8@gmail.com>
	<20221001122000.jq7f5wnmzbewimpn@hjp.at>

On 10/1/22 07:20, Peter J. Holzer wrote:
> On 2022-10-01 02:22:22 -0500, Ron wrote:
>> I extracted the singleton into a function, and that helped me isolate the
>> problem.
> I don't know what a singleton select is (duckduckgo tells me it has
> something to do with DB2 and/or COBOL, or maybe it's a whisky), but:

A query which returns one row.  Typically SELECT COUNT/MAX/etc without a 
GROUP BY clause.

-- 
Angular momentum makes the world go 'round.





view thread (8+ messages)  latest in thread

Message-ID: <f8f50eb5-28d2-25d9-aa0a-eed150f17aad@gmail.com>
Permalink:  ../f8f50eb5-28d2-25d9-aa0a-eed150f17aad@gmail.com/
Also on:    postgresql.org/message-id/f8f50eb5-28d2-25d9-aa0a-eed150f17aad@gmail.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: ronljohnsonjr@gmail.com
  Subject: Re: Example code Re: Singleton SELECT inside cursor loop
  In-Reply-To: <f8f50eb5-28d2-25d9-aa0a-eed150f17aad@gmail.com>
  References: <ee9f6dc7-281d-f2a1-2556-54d36fd96e91@gmail.com> <d0f2c884-db0f-826f-a4e2-24a5e31130d8@gmail.com> <20221001122000.jq7f5wnmzbewimpn@hjp.at> <f8f50eb5-28d2-25d9-aa0a-eed150f17aad@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox