pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hans Buschmann <buschmann@nidsa.net>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: AW: BUG #18189: Value partitioned tables: Upd ERROR: more than one row returned by a subquery used as an expression
Date: Sat, 11 Nov 2023 18:43:26 -0500
Message-ID: <1605685.1699746206@sss.pgh.pa.us> (raw)
In-Reply-To: <8c6d3b59e47943efbba984c532424163@nidsa.net>
References: <18189-816907aeaa0114e4@postgresql.org>
	<1377901.1699629535@sss.pgh.pa.us>
	<8c6d3b59e47943efbba984c532424163@nidsa.net>

Hans Buschmann <buschmann@nidsa.net> writes:
> I sent a "reply to all" mail after I received the Bug-reporting mail (WHY after a longer time of clearance??) yesterday at 15:50 CET.
> It contained all 5 attachments just under 10 MB and I received the the copy sent to myself. So I thought all is OK.
> Today I noticed,  that this mail doesn't appear in buglist #18189 and totally disappeared for the community !!!
> It seems there are mechanisms behind the scenes, that are not documented nor obvious for gentle users trying to ameliorate the software...

I think those messages are just hung up in moderation.  If you're
not subscribed to pgsql-bugs, whatever you send will be held for
moderator approval (a sadly-necessary spam defense).

Anyway, the error is coming out of this bit:

,qoffs as (
select
 ...
,(((((ra -(select ra_base from qsum))*1000000000000)::bigint)>>15)&((1::bigint<<31)-1))::int as ira
 ...

"(select ra_base from qsum)" certainly is a "sub-select used as an
expression", and I guess the difference between your smaller and
larger datasets is how many rows the qsum CTE produces.  If I'm
reading it right, that'll produce one row for each distinct value
of "(source_id >> 35+12)&((1<<16)-1)".

			regards, tom lane





view thread (2+ messages)

Message-ID: <1605685.1699746206@sss.pgh.pa.us>
Permalink:  ../1605685.1699746206@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1605685.1699746206@sss.pgh.pa.us

 · 

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: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, buschmann@nidsa.net, pgsql-bugs@lists.postgresql.org
  Subject: Re: AW: BUG #18189: Value partitioned tables: Upd ERROR: more than one row returned by a subquery used as an expression
  In-Reply-To: <1605685.1699746206@sss.pgh.pa.us>

* 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