Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOnoP-0006gE-NE for pgsql-general@arkaria.postgresql.org; Fri, 01 Jun 2018 17:26:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fOnoO-0000kg-GV for pgsql-general@arkaria.postgresql.org; Fri, 01 Jun 2018 17:26:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOnoO-0000kX-6f for pgsql-general@lists.postgresql.org; Fri, 01 Jun 2018 17:26:00 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fOnoK-0003bx-EU for pgsql-general@lists.postgresql.org; Fri, 01 Jun 2018 17:25:59 +0000 Received: by mail-pf0-x242.google.com with SMTP id r11-v6so5259789pfl.6 for ; Fri, 01 Jun 2018 10:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=UjVCRKWo/IBs3Gc2UOTzhvGc6gg9zmdXrjLaw8zwOb4=; b=a7aThBB4VX8hT3OFfaIafljvQkb0pd1JU1aXSRC+UX4Dnm8Fz/bJSRlHFdYRsQdw8g jLz944qagEJ6846flziL6pKLGO9Ti9g1Y/8ra4KVghVSo3NYDFCvjTcM6d5S1jByJWPG /O5WvVp9I2yEtnM36vjNJHN3/Qotv5k/9gHXIBttHnf6UILaaD2pqd7XKXN1mu+hmxpS 0EDkmclAQdguunXmbw392I//bVQ5u/bk6f297sKbTWpxJ+DSVOX60XtP1JTthXCRwRsc EQ9vEG+UiJFMlAJduEw++17to3K/BubeHy1ZksJNEinaeidWkPOG+jfv5dYPTDIKDAFW tV5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=UjVCRKWo/IBs3Gc2UOTzhvGc6gg9zmdXrjLaw8zwOb4=; b=dUT0M/cAqfwFjvfUW+paayoGIDw4rjB91+93Lo7Eqig8wxA/aN7AR1ukRybgrBkZ7c xeT2h0XBt+6fRu6hmG9YqO2Q96PfyQrv/PG6q92VzKW5Klr5N/SUhN2Z/9Gkt8F+ZUEL qLPuR5x4cTyFOIf/8o82DVzH4yCZ4fr5P2ffH9zpUuUV8LcFz0XWZ/UVnmooNr7IHLur Amnt3+MSFW3V/fjviWifz5N/gLOiKvQsATOyL4GAoBfrfNSPiAdqqh2zf3ByX5EWRyy6 gf9xJtpIO4V5SQCdtPbzhSPUbxx1XktqvPZpGCPAyod2iYr++c6IdYtlDzbtr2BnK519 6PQA== X-Gm-Message-State: ALKqPwclH7VYBOErT0ELLBiS2wT2nRxN1LpWLBqd8qkmg+QBg+LMOvOY jXsX8AOJmKQKTWeRe6Fi/heZ/KSb X-Google-Smtp-Source: ADUXVKKy7bB0hh7Q2U3zCbXqB6bOnFgzuE5TUOERn7Sql59EkHNzbTbxv2+AP8JMo27sQMDW/Wq2iw== X-Received: by 2002:a65:4b02:: with SMTP id r2-v6mr9488865pgq.82.1527873954151; Fri, 01 Jun 2018 10:25:54 -0700 (PDT) Received: from ?IPv6:2600:8801:8800:1a::b? ([2600:8801:8800:1a::b]) by smtp.gmail.com with ESMTPSA id m5-v6sm49594212pfa.93.2018.06.01.10.25.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jun 2018 10:25:53 -0700 (PDT) Subject: Re: Whither 1:1? Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_5E4573F7-EA51-4926-A1DF-079C7A9C0BE0" From: Guyren Howe X-Mailbutler-Tracking-Uuid: A79D518D-26BC-44BC-BAB7-9903D096CC5D X-Mailbutler-Link-Tracking-Uuid: In-Reply-To: Date: Fri, 1 Jun 2018 10:25:40 -0700 Cc: pgsql-general@lists.postgresql.org Message-Id: References: To: Olivier Gautherot X-Mailer: Apple Mail (2.3445.6.18) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_5E4573F7-EA51-4926-A1DF-079C7A9C0BE0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Jun 1, 2018, at 10:16 , Olivier Gautherot = wrote: >=20 > You will get a benefit in terms of space only if the optional fields = in the second table exist in a reduced number of instances - and the = second table is significantly wider. This can make a difference on big = tables but this gain may be offset by the cost of the join. In this = perspective, I don=E2=80=99t think that there is a clear benefit or = drawback: it should be evaluated on a case-by-case basis. It seems to me that people take time to catch up with modern hardware = reality. SSDs reduce seek time to virtually zero. Surely, joins are now = much, much cheaper. If so, I=E2=80=99m inclined to describe wide tables = as a premature optimization. --Apple-Mail=_5E4573F7-EA51-4926-A1DF-079C7A9C0BE0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 On = Jun 1, 2018, at 10:16 , Olivier Gautherot <olivier@gautherot.net> wrote:

You will get a benefit in terms = of space only if the optional fields in the second table exist in a = reduced number of instances - and the second table is significantly = wider. This can make a difference on big tables but this gain may be = offset by the cost of the join. In this perspective, I don=E2=80=99t = think that there is a clear benefit or drawback: it should be evaluated = on a case-by-case basis.

It seems to me that people take time to catch up = with modern hardware reality. SSDs reduce seek time to virtually zero. = Surely, joins are now much, much cheaper. If so, I=E2=80=99m inclined to = describe wide tables as a premature optimization.

= --Apple-Mail=_5E4573F7-EA51-4926-A1DF-079C7A9C0BE0--