Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n59df-0002w5-2f for pgsql-general@arkaria.postgresql.org; Wed, 05 Jan 2022 16:59:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n59dd-0004f6-R2 for pgsql-general@arkaria.postgresql.org; Wed, 05 Jan 2022 16:59:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n59dd-0004ex-CI for pgsql-general@lists.postgresql.org; Wed, 05 Jan 2022 16:59:49 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n59db-0002FQ-0P for pgsql-general@lists.postgresql.org; Wed, 05 Jan 2022 16:59:48 +0000 Received: by mail-pf1-x431.google.com with SMTP id v11so35750513pfu.2 for ; Wed, 05 Jan 2022 08:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=WP6jxiHFnGixC7ujI9MC2G0cJvpvviPUhY0X3QMDQng=; b=SZyeG3JJbvo50Nz+IN9yHy96De8DSu65lCb5o1Gy59R6/aXp2G0mreK7gFOLBAw4Ef nBLPC7hETdVCEPZqqIJnPtLwADAkhZfpCh2/+iQD5lu2ky3Uu7U3gnoR6LWub0dGbnef CebHPz9j/R6bGd6etalzqhTz+iTTSAKFBi6kA8DB65+BLY0VS5gB6Wqnk/ZX+m5WaCw3 6ffRFwV9FFpY/T0c/BPk1dC+ldBgKydRGKbTeT/j6BbrLro1oijFi74+rw/rwXKzcum+ IRf/eSmuHXnY/WsJq3+gpqAVlbTcLT7pVOf9C9kNYHo/m9T+79CVEcmTtxhlo/9bdX1E H04A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=WP6jxiHFnGixC7ujI9MC2G0cJvpvviPUhY0X3QMDQng=; b=HotxXqAJGtyaq5+frHVcCkiJFK879zCsYCQrrWkPx1DiEgZKzXwQ8SJLgMSI3EXSHv ydGIloDgE53Ej+vvb6jAB0Lbcqmc/coSRavYnAeGSmml7t92Sx7kzQsYx19T9Lo97tOC Bu6PtShDh3ZWSSd7u3vVrXou6muXCEAic+dcKcq5soxnBuF5GbR75q/obT6KOPkF2ma4 /9SLQD4h5dTWCPUbVUbR3ulJZHeDmNAf4Z6FKni7SrQTh+mVsAYIV2gdMMLp3u+OxO3O SVnmqaBotCoIglbfJkeGpvAsPn04INv6FsC6cle6D5LAK/ESCNtjk1cyOddeCFeToz1z Urog== X-Gm-Message-State: AOAM5321OkyzvzUpmMXx6EKzD3wqSxKi2A7K/k3WaKc0OCqkp2VcbwDC tFI99alfRB4ctXc2aAhq3bw= X-Google-Smtp-Source: ABdhPJwKdYCcEn89veGDBe5tmmPLsPYDeH7UbzpiO+jmNAf25J4Hj3tARdUcQmdgE7/ShTgjvJg3jw== X-Received: by 2002:a63:5502:: with SMTP id j2mr49005490pgb.197.1641401986053; Wed, 05 Jan 2022 08:59:46 -0800 (PST) Received: from smtpclient.apple ([155.98.131.4]) by smtp.gmail.com with ESMTPSA id 193sm44921994pfz.43.2022.01.05.08.59.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jan 2022 08:59:45 -0800 (PST) From: Rob Sargent Message-Id: <7C960A58-63E0-4D73-9018-DC398718BB5F@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_BF85D733-9641-4B70-B4D1-3775EC2975AB" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Create and access a dictionary type Date: Wed, 5 Jan 2022 08:59:43 -0800 In-Reply-To: <71d93298-b172-9474-f3ff-96293a7f1524@gmail.com> Cc: pgsql-general To: Ron References: <71d93298-b172-9474-f3ff-96293a7f1524@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_BF85D733-9641-4B70-B4D1-3775EC2975AB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >>=20 >> Well, yes - you can always decompose the dict and store it in an EAV, = but sometimes it's more convenient to just use "nested" dictionary at = the row level. Which is what a JSONB column does. >=20 > Edgar Codd is rolling in his grave. >=20 >=20 Contributing mightily to the global angular momentum, for sure. > --=20 > Angular momentum makes the world go 'round. --Apple-Mail=_BF85D733-9641-4B70-B4D1-3775EC2975AB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii


Well, yes - you can always decompose the dict and store it in = an EAV, but sometimes it's more convenient to just use "nested" = dictionary at the row level. Which is what a JSONB column does.

Edgar Codd is rolling in his grave.


Contributing mightily to the global = angular momentum, for sure.
-- Angular = momentum makes the world go 'round.

= --Apple-Mail=_BF85D733-9641-4B70-B4D1-3775EC2975AB--