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 1oM8AK-0006Zb-HC for pgsql-general@arkaria.postgresql.org; Thu, 11 Aug 2022 13:24:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oM8AJ-0002XA-9X for pgsql-general@arkaria.postgresql.org; Thu, 11 Aug 2022 13:23:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oM8AI-0002Wj-Iy for pgsql-general@lists.postgresql.org; Thu, 11 Aug 2022 13:23:58 +0000 Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oM8AA-0004DX-Jx for pgsql-general@lists.postgresql.org; Thu, 11 Aug 2022 13:23:57 +0000 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C6FA621A25 for ; Thu, 11 Aug 2022 13:23:46 +0000 (UTC) Received: from mi3-ss4.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 2E41621F4D for ; Thu, 11 Aug 2022 13:23:46 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1660224226; a=rsa-sha256; cv=none; b=vRXp7g1MDeXLZGiATiukS2iU0a0FFX/+PEY49FviGeQj6S63+XTAxVsjHDsPw+Q4Z/h3fk jCLMmBu7D7mfnKkdvllOtKoNzL+2kwDSrl0Z4/HopA21ThiffrIqAHV2EGlXwXrQPhQNz1 8GzGtlainhub/k1JYxDfvtl3gL+cM9KS2TQrVqsLiIsDKbeqvTMr6Ry0auNCeA180M86ph qecaevR0R0jRrR0JuIpkU09Xb/VtfU+szLi/w4XHqtH/yYYn1RFHNNWFSU7LEJ4Uzfc/tL VwuKxpwaWRL5WuBJR187ynZR5kcXfKNSdNUKGMcV6LYkZuIyTYcnuP5D+MkqNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1660224226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=nsbn6n/Cq6vMkMj1S5k/r60qhFKmS5AIst8fnnDGNNM=; b=s8k9ZVJmIaoYIRrMQokVG6xxHNkqH06LkhlMqN338nRttQSDN2GID5e80vF0sjhCeu9Wg1 ZK8i2U8AP4txs7Naq/o0i9A/vedwLWxwgJ6DpUqmJWdCWGYPw8fnAGAjI+UK3kTBmTZIEs ASXe+/sJzMLSIewhLsSodvXKutsOoLxVxFb6Iqke6/mfg0Rs82oAnErfXUMbrEUVj4pU0R do768dr0bbiMVsfkKGorFn6SmYSP7ZyOG6TirTgcnyJyef6nYOvUi8FdBQp4+zkHVIZh1z BRXtFVvVM3vZ/lzCOMF6eDCwEGWxn6ufadAkn+Q998Q6q3NjpJQX0W2FyjmQgg== ARC-Authentication-Results: i=1; rspamd-7c478d8c66-j58hb; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@easesoftware.com X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Power-Spill: 79232af845f82060_1660224226569_3359007493 X-MC-Loop-Signature: 1660224226569:3353665675 X-MC-Ingress-Time: 1660224226569 Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.112.55.239 (trex/6.7.1); Thu, 11 Aug 2022 13:23:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:Date:Message-Id:Subject:Mime-Version: Content-Type:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nsbn6n/Cq6vMkMj1S5k/r60qhFKmS5AIst8fnnDGNNM=; b=KKxMmraGiiaRiPpUpulJyOuS7K PwWcD/T1IK7499/F4pHHtTuHjMvj48fSd4BgDYWQKjlntQH+l2w1XLWZu6tRyLbFwKQyLH6pQ1mCS X40rbUnqCoN7CZ2ip7S1g4zZ14Cvdhrk0MidC4Ra7SwmcEBHB05uca41BQMU9otPL6qqWl67BXORw bn6lMxm3IPlcxW4ul/RppAsgm4cD+wnYyUtKRj4W6FBgD7ApjOqH1GLY13LXV/nQYp2L8fkC2IAwK cLIKv4V6kM1hTWxDyqnqEgf3j4dpfB6CJg1zX7Vp82Pr83fOb2bBXr7tc6vv3CKvYxul7aPEMgwny IgkSOm9g==; Received: from cpe-70-94-128-193.satx.res.rr.com ([70.94.128.193]:59035 helo=smtpclient.apple) by mi3-ss4.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oM8A4-0006VT-DD for pgsql-general@lists.postgresql.org; Thu, 11 Aug 2022 09:23:44 -0400 From: Perry Smith Content-Type: multipart/signed; boundary="Apple-Mail=_DA8D3A89-1B25-4D4E-B461-20A818CF4CE6"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Oddity that I don't understand Message-Id: <97EC2704-FA5A-4217-B8CD-67294D0FA664@easesoftware.com> Date: Thu, 11 Aug 2022 08:23:43 -0500 To: pgsql-general list X-Mailer: Apple Mail (2.3696.120.41.1.1) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_DA8D3A89-1B25-4D4E-B461-20A818CF4CE6 Content-Type: multipart/alternative; boundary="Apple-Mail=_ACAF907A-F4E8-4385-BD6D-D5FE6BF7B18C" --Apple-Mail=_ACAF907A-F4E8-4385-BD6D-D5FE6BF7B18C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99m tempted to ask =E2=80=9CIs this a bug=E2=80=9D but I predict = there is an explanation. I have a view: find_dups=3D# \sv+ dateien 1 CREATE OR REPLACE VIEW public.dateien AS 2 SELECT d.id, 3 d.basename, 4 d.parent_id, 5 d.ino, 6 d.ext, 7 i.ftype, 8 i.uid, 9 i.gid, 10 i.mode, 11 i.mtime, 12 i.nlink, 13 i.size, 14 i.sha1, 15 i.file_type 16 FROM dirents d 17 FULL JOIN inodes i USING (ino) find_dups=3D# \d inodes Table "public.inodes" Column | Type | Collation | Nullable | = Default = ------------+--------------------------------+-----------+----------+-----= ---- ino | bigint | | not null | ftype | character varying | | not null | uid | bigint | | not null | gid | bigint | | not null | mode | bigint | | not null | mtime | timestamp without time zone | | not null | nlink | bigint | | not null | size | bigint | | not null | sha1 | character varying | | | created_at | timestamp(6) without time zone | | not null | updated_at | timestamp(6) without time zone | | not null | file_type | character varying | | | Indexes: "inodes_pkey" PRIMARY KEY, btree (ino) "index_inodes_on_ftype_and_size_and_file_type_and_sha1_and_nlink" = btree (ftype, size, file_type, sha1, nlink) Referenced by: TABLE "dirents" CONSTRAINT "fk_rails_f076303053" FOREIGN KEY (ino) = REFERENCES inodes(ino) find_dups=3D# \d dirents Table "public.dirents" Column | Type | Collation | Nullable | = Default = ------------+--------------------------------+-----------+----------+-----= -------------------------------- id | bigint | | not null | = nextval('dirents_id_seq'::regclass) basename | character varying | | not null | parent_id | bigint | | | ino | bigint | | not null | created_at | timestamp(6) without time zone | | not null | updated_at | timestamp(6) without time zone | | not null | ext | character varying | | | Indexes: "dirents_pkey" PRIMARY KEY, btree (id) "index_dirents_on_basename" btree (basename) "index_dirents_on_ext" btree (ext) "index_dirents_on_ino" btree (ino) "index_dirents_on_parent_id_and_basename" UNIQUE, btree (parent_id, = basename) Foreign-key constraints: "fk_rails_4dfefe0fc0" FOREIGN KEY (parent_id) REFERENCES dirents(id) = ON DELETE CASCADE "fk_rails_f076303053" FOREIGN KEY (ino) REFERENCES inodes(ino) Referenced by: TABLE "dirents" CONSTRAINT "fk_rails_4dfefe0fc0" FOREIGN KEY = (parent_id) REFERENCES dirents(id) ON DELETE CASCADE I do a select and I get: find_dups=3D# select id, basename, ext, parent_id, ino, sha1 from = dateien where sha1 =3D '36f53d60353e0de6ed55d9da70a36b17559039f3' order = by parent_id; id | basename | ext | parent_id | ino | = sha1 = ----------+--------------+-----+-----------+----------+-------------------= ----------------------- 85276821 | VC5Y8191.CR2 | CR2 | 85273064 | 70163023 | = 36f53d60353e0de6ed55d9da70a36b17559039f3 85829158 | VC5Y8191.CR2 | CR2 | 85827904 | 79366 | = 36f53d60353e0de6ed55d9da70a36b17559039f3 | | | | | = 36f53d60353e0de6ed55d9da70a36b17559039f3 (3 rows) How can the third line exist? Or, perhaps I should ask, what is the = third line telling me? Thank you, Perry --Apple-Mail=_ACAF907A-F4E8-4385-BD6D-D5FE6BF7B18C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I=E2=80= =99m tempted to ask =E2=80=9CIs this a bug=E2=80=9D but I predict there = is an explanation.

I = have a view:
find_dups=3D# \sv+ dateien
1       CREATE = OR REPLACE VIEW public.dateien AS
2       =  SELECT d.id,
3         =   d.basename,
4         =   d.parent_id,
5         =   d.ino,
6         =   d.ext,
7         =   i.ftype,
8         =   i.uid,
9         =   i.gid,
10         =  i.mode,
11         =  i.mtime,
12         =  i.nlink,
13         =  i.size,
14         =  i.sha1,
15         =  i.file_type
16         = FROM dirents d
17         =   FULL JOIN inodes i USING = (ino)

find_dups=3D# = \d inodes
    =                     =     Table "public.inodes"
   Column   | =              Type     =          | Collation | Nullable | = Default 
------------+--------------------------------+-----------+-----= -----+---------
 ino =        | bigint           =               |       =     | not null | 
 ftype      | character varying   =            |         =   | not null | 
 uid        | bigint     =                     | =           | not null = | 
 gid =        | bigint           =               |       =     | not null | 
 mode       | bigint       =                   |   =         | not null | 
 mtime     =  | timestamp without time zone    |       =     | not null | 
 nlink      | bigint       =                   |   =         | not null | 
 size       = | bigint                   =       |           | not null = | 
 sha1 =       | character varying         =      |           |     =      | 
 created_at | timestamp(6) without time zone |   =         | not null | 
 updated_at | timestamp(6) = without time zone |           | not null = | 
 file_type =  | character varying             =  |           |         =  | 
Indexes:
    "inodes_pkey" PRIMARY KEY, btree = (ino)
    = "index_inodes_on_ftype_and_size_and_file_type_and_sha1_and_nlink" btree = (ftype, size, file_type, sha1, nlink)
Referenced = by:
    = TABLE "dirents" CONSTRAINT "fk_rails_f076303053" FOREIGN KEY (ino) = REFERENCES inodes(ino)

find_dups=3D= # \d dirents
        =                     =               Table = "public.dirents"
   Column   | =              Type     =          | Collation | Nullable |     =           Default         =       
------------+--------------------------------+-----------+-----= -----+-------------------------------------
 id       =   | bigint                 =         |           | not = null | nextval('dirents_id_seq'::regclass)
 basename   | = character varying              | =           | not null = | 
 parent_id  | bigint         =                 |     =       |         =  | 
 ino       =  | bigint                 =         |           | not = null | 
 created_at | timestamp(6) = without time zone |           | not null = | 
 updated_at | timestamp(6) without time zone |   =         | not null = | 
 ext        | character varying =              |       =     |         =  | 
Indexes:
    "dirents_pkey" = PRIMARY KEY, btree (id)
    = "index_dirents_on_basename" btree = (basename)
    "index_dirents_on_ext" btree = (ext)
    "index_dirents_on_ino" btree = (ino)
    "index_dirents_on_parent_id_and_basename" = UNIQUE, btree (parent_id, basename)
Foreign-key = constraints:
    = "fk_rails_4dfefe0fc0" FOREIGN KEY (parent_id) REFERENCES dirents(id) ON = DELETE CASCADE
    = "fk_rails_f076303053" FOREIGN KEY (ino) REFERENCES = inodes(ino)
Referenced by:
    TABLE "dirents" = CONSTRAINT "fk_rails_4dfefe0fc0" FOREIGN KEY (parent_id) REFERENCES = dirents(id) ON DELETE CASCADE

 I do a select and = I get:

find_dups=3D# select id, = basename, ext, parent_id, ino, sha1 from dateien where sha1 =3D = '36f53d60353e0de6ed55d9da70a36b17559039f3' order = by parent_id;
    id    |   basename   | ext = | parent_id |   ino    |         =           sha1        =            
----------+--------------+-----+-----------+----------+--------= ----------------------------------
 85276821 | VC5Y8191.CR2 | = CR2 |  85273064 | 70163023 | = 36f53d60353e0de6ed55d9da70a36b17559039f3
 85829158 | VC5Y8191.CR2 | = CR2 |  85827904 |    79366 | = 36f53d60353e0de6ed55d9da70a36b17559039f3
        =   |              |     = |           |         =  | 36f53d60353e0de6ed55d9da70a36b17559039f3
(3 = rows)

How can the third line exist?  Or, = perhaps I should ask, what is the third line telling me?

Thank you,
Perry



= --Apple-Mail=_ACAF907A-F4E8-4385-BD6D-D5FE6BF7B18C-- --Apple-Mail=_DA8D3A89-1B25-4D4E-B461-20A818CF4CE6 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5yOa/gCtQpb3oCpljxzk9yzE+MAFAmL1At8ACgkQjxzk9yzE +MB/ABAA6JpBQ70GUwjYOyr1KrAwVtj03ohXZh5EqfThjbIAEMAZN6UjCdXODO0E FHDWVmkrbxy58mtHPV3TpdH/HZdpZaZCth8/0j2IRbLTXh79B1SSo9SLjmGjiRBU EwBUD8B2KfiJkV/GKKzTL7j9tlo1boU+yvj8lmA+TESmv8IIScWe/36jaKOKxXbE cryZzxqCTRYNiMqvTnPazqvyK1OgeI54DU/+P3hihv9HPUrGUKY982oJB6if6ZYM Tqldl0p8Rs2aHNMzoYGmrq0KjDRsd0gf4bYI2WWMZUDWGg2acBwxuGuQxjDQXXb8 +9Gomu3nmFYqoTRj8F9qH4mwHiNxM43cmGWo/dGeCpW9UjEqV6OX0R/WMj1jLRZi 8pDHbFgf79OjXtJDx+GNkn6O/AbpvPw2jVcCgDH5RrlQJsaASz4bNiXWGKr1iO+a 3j4B1FJZZV3006kdxOnPePcfddhRxpv3v5up0SJuFqzvm48Lml9rpN6uIiu3AA9O Tk7JB8Y5kKdwJqP6Bzk5KnC3ohfiHxFHGpSq4HeiBWnxTydnIkJhCappKd657aMQ oJ5urnwKKB70I3Q7BlO4a8NxtWa3GrzpE/tr5bS28mO2+uCtMyY/Hhyh9ARuwqi9 OSSLhndBbR/7CC6GvzEur8H8rKAICcnlHYhoPywWStmOJ3T9iG4= =QnB7 -----END PGP SIGNATURE----- --Apple-Mail=_DA8D3A89-1B25-4D4E-B461-20A818CF4CE6--