Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tZXE7-00AasM-9k for pgsql-general@arkaria.postgresql.org; Sun, 19 Jan 2025 15:28:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tZXE3-0080LB-Q5 for pgsql-general@arkaria.postgresql.org; Sun, 19 Jan 2025 15:28:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tZXE3-0080JP-DX for pgsql-general@lists.postgresql.org; Sun, 19 Jan 2025 15:28:35 +0000 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tZXE1-000Oxo-21 for pgsql-general@lists.postgresql.org; Sun, 19 Jan 2025 15:28:34 +0000 Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3eba50d6da7so860349b6e.2 for ; Sun, 19 Jan 2025 07:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737300513; x=1737905313; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gqmHCCIjUC2kuL+C65Ba0Y0CLTtdMxE16wlDa73APjY=; b=DSuW+fIYr9HSlw2EZYOk+rBh1PldhwpQZMCNh+XsErCFzc4wMIhNq6q2gyj5fo0G+E pFu6tN3iMLk+YFJvs1/9A7+0D600uo7hQA0PasN0vdrb4VamZb9I2saty/nVpbLuOJ8K w1YfgKYGxdnkVLrGKY0yWN6IwfNS16zSjpMhCIEIk5Mzqj0rXQ3nHBY5XFfTILDKuGou zqUgiNKHGkI0HcYtGKV+RjfraPrF0WckKRu9SahBWhqIWvcL1dgmg+fVwcPzw9USpJEq 5CuV1Q3e9ncD5pSGh+JKirACNLBrn5157CxO512TvIAuOi+BKKNlTMqrFoqqzhab25gN 3fMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737300513; x=1737905313; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gqmHCCIjUC2kuL+C65Ba0Y0CLTtdMxE16wlDa73APjY=; b=DeaTgBFvwOGh6wtExAWhJYibOBbRrYq3JKn1ARtIJ7LE6p4xbxn85AOvzoXmD0Izn6 jDyG3vSEhRKlvQMo1Qx0mT2rrjOxcnCW191z/PPmk2wJXULSsokJDtAQDzqMxxLNAAbX 0AZjLdqbKiaLRzItCpraDaEouvmiM8a7uvtWCHA8pSMWK6VEBYbWeR7gai16xiiwlUGF mM3VLUgXdXB3aOvtCW9qyIeL3djUl+Q3SFsWBFxJWTxTzPhyxOF6svdj7CMUCDVdnAuP gqNO/7vReArpVz7Xs7IqRWXjcO91qvT0+IryJAalUqylBkzvyilNLo3khZOTZQD9n70j LF+Q== X-Gm-Message-State: AOJu0YzhShMJkBgSgJzBprEiARRbmmwzkDxIN/mBlUBy/mQzISh3TZl5 sWVfdnNpb+hTlm32ywWxvqj/N5xq1oHQ3GOlu/pqqN8U+zzt+671Eqoh03TWvecHLGZOZyxeFlg Nw3X5leIq3uy8DlaLEmWzyxaAsX8= X-Gm-Gg: ASbGnctmDVy15rskix/omV7gY0PdW/Fpj8UOGq2NFiu4gyoCw2pqFXlXIaRVz9a2N9g XW3tix/0dcPbH9h3b8nfUt13ElnQgthI202KnG6zaNT0u8oA0hn0= X-Google-Smtp-Source: AGHT+IHVdUr3IMvP8T2cYs3XyFSY1dETxELPw+5U+7DTlE2WWTTfCdWnsNMmT+Dj/VHWMI5kJchqEZkyO/+ZUnEO4d0= X-Received: by 2002:a4a:ec49:0:b0:5f6:765c:d260 with SMTP id 006d021491bc7-5fa3889955dmr6220421eaf.7.1737300512998; Sun, 19 Jan 2025 07:28:32 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a8a:1e07:0:b0:577:9519:f64a with HTTP; Sun, 19 Jan 2025 07:28:32 -0800 (PST) In-Reply-To: References: <2268303.1737134384@sss.pgh.pa.us> From: "David G. Johnston" Date: Sun, 19 Jan 2025 08:28:32 -0700 X-Gm-Features: AbW1kvaFSys1uGEXDh3r9HwirgONE69-_jNu_P0KDrvBjfmqtiODWD7OgY3Hn5M Message-ID: Subject: concatenating hstores in a group by? To: Brent Wood Cc: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000f20ea0062c10cb8a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f20ea0062c10cb8a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Friday, January 17, 2025, Brent Wood wrote: > > I want to concatenate the hstores, > > There are no hstore aggregate functions. You=E2=80=99ll want to convert th= em to,json first then use the json_objectagg aggregate function. David J. --000000000000f20ea0062c10cb8a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Friday, January 17, 2025, Brent Wood <Brent.Wood@niwa.co.nz> wrote:

I want to concatenate the hstores,


The= re are no hstore aggregate functions.=C2=A0 You=E2=80=99ll want to convert = them to,json first then use the json_objectagg aggregate function.
=C2=A0
David J.

--000000000000f20ea0062c10cb8a--