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 1k5B3L-0006nB-0C for pgsql-general@arkaria.postgresql.org; Mon, 10 Aug 2020 16:53:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5B3J-0000RG-V5 for pgsql-general@arkaria.postgresql.org; Mon, 10 Aug 2020 16:53:37 +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 1k5B1f-0004v9-Pi for pgsql-general@lists.postgresql.org; Mon, 10 Aug 2020 16:51:55 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k5B1d-0003Rr-NC for pgsql-general@lists.postgresql.org; Mon, 10 Aug 2020 16:51:55 +0000 Received: by mail-oi1-x22d.google.com with SMTP id v13so9471938oiv.13 for ; Mon, 10 Aug 2020 09:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=J4am+gefaxiFRsRzokCISrWcP4I4P2QlK4Ma3yKK+Xc=; b=Ll0lHlGCo/owukziqa2F5mdPppW0VF/u0fzoozkMzorT7Pb069x/xFlc5WKnJl1pSl Irl7IoHIZFe/3o9eCmZ6681g5yBa21+n3gf/ZB8+bTzFcsZ0Tu9Uhqx0qSONlFVLVBVD aNMRHnIr569TbDwq0CXBr3Ys4epiOfMqzHtENFgpBvQ+mXDye1EsyrR+9HeQTMoYTqUH 0Mwlf87N9cmy6n1qSCJY6cLrrQJEkuaLuFsDDLwAuvCIaacCu++9XTRtVgNelQgr1v0H 74uUJU/70vj+ohC73jKj6wrwG/bZBy9QRkHIbyYRQV32pT0ALGdNZmtqpIcEuS2UnfQX /o5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=J4am+gefaxiFRsRzokCISrWcP4I4P2QlK4Ma3yKK+Xc=; b=ECINKjbtEqCdDBp1BSjRJxnZdIcttnAd3g4EeApuTauc0w+bZb9nQUFdww8iL3eCbG EpS83wUnvDH0eGjPjmK8bCPoRz1VUnOaauP32v7dtTeudMbrz3rVzxCZX080OiuYWKpV LHFjOIwuUO34f/wfV4zjlaA2kxsJTws70idQiIQijQHoIm5pzFOqWROR4YFcce8JJvTW rUgUYLuRzRajMl/7nWG2ijnYjAUw8X5NwX0pjUh8tQQrr8uXu04OqjDS/Kd5IJSfpt9G I3S+ekKS6BjGFQosBomCO/D5sye6NOgqMXx31ZLTmHu61YB0tGVjuy6HBGvCKSHQvKDq P/XA== X-Gm-Message-State: AOAM530dvhYCuDrludfn63nKRfjjJSEI6Nx/M1FQX5pVBzosKrq2pEkb TI6vsXTSJ6vjoYFMWs6WtweZbdZJ8lE= X-Google-Smtp-Source: ABdhPJy0yqyIDP0kne0Jbo1upWvw8mNMp5cmcmjczTaDMQ20jRPgubeXLZz2LLQcpUPxtDBRK5T6hQ== X-Received: by 2002:aca:4cce:: with SMTP id z197mr184146oia.118.1597078311389; Mon, 10 Aug 2020 09:51:51 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id r15sm3736341oor.35.2020.08.10.09.51.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Aug 2020 09:51:50 -0700 (PDT) Subject: Re: UUID or auto-increment To: pgsql-general@lists.postgresql.org References: <837516231.2607507.1597077490690@mail.yahoo.com> From: Ron Message-ID: <2663a1f2-7377-58e7-ad7d-a867fe75cb15@gmail.com> Date: Mon, 10 Aug 2020 11:51:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <837516231.2607507.1597077490690@mail.yahoo.com> Content-Type: multipart/alternative; boundary="------------21E09C3E2EF861BFD1EE76F7" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------21E09C3E2EF861BFD1EE76F7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 8/10/20 11:38 AM, Ravi Krishna wrote: [snip] > Finally UUID results in write amplication in wal logs.  Keep that in mind > if your app does lot of writes. Because UUID is 32 bytes, while SERIAL is 4 bytes? -- Angular momentum makes the world go 'round. --------------21E09C3E2EF861BFD1EE76F7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 8/10/20 11:38 AM, Ravi Krishna wrote:
[snip]
Finally UUID results in write amplication in wal logs.  Keep that in mind if your app does lot of writes.

Because UUID is 32 bytes, while SERIAL is 4 bytes?

--
Angular momentum makes the world go 'round.
--------------21E09C3E2EF861BFD1EE76F7--