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 1nmjGl-0000vk-VK for pgsql-docs@arkaria.postgresql.org; Thu, 05 May 2022 21:44:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nmjGk-0007lq-No for pgsql-docs@arkaria.postgresql.org; Thu, 05 May 2022 21:44:18 +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 1nmb9m-00051t-Da for pgsql-docs@lists.postgresql.org; Thu, 05 May 2022 13:04:34 +0000 Received: from mail-co1nam11olkn20801.outbound.protection.outlook.com ([2a01:111:f400:7eab::801] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmb9b-0006xx-8p for pgsql-docs@lists.postgresql.org; Thu, 05 May 2022 13:04:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VZaW9VbX43Jt2CBKRtucqIPtX3CRlhR55Th0SdbKoxfIMbOVKexXQMFFgZtUlcoki167dkrT26jJYmMnHw114zgPFKv8p1L4eAfYIZBPqxs2QO+L00GO5JTecbjMHBtFD+wVVkSiKjem9+ydce4MlkxEPx94lkIe6vsI71fh12gvIWVwMv0TzYyrOBczgQ8cTS1gG3EIcKBCGqwO0luBe6XMC89WWKQBfptdqQYXTM/Cp5tvYsU6t5xtRBhIw92wS677MqN5xKGyAGaDQ+cDmcE+SMUwKjknHpQWs0JZFZIfymeLqhUl6Gi06e9ZlglbVY+bJAUDtT8jLwkLC1ESSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qaJdTwWqGxWev3qfhYD6fHCM+cdm/m4QCWX56g/WyUU=; b=PY1FaMz20nlzEUsFcgXqv/VsMU0W1X+j9Y7fdYOcSq65inwkjXYNX9m8kY5MEpFnzoZdvY1RV32qVHp4ObN33c0/6Ck7emA7waHU7lYk9c5nGaE5t0Y1590qbBTHDLAwNXbIsrVjziyzsTRzsy6DXbBcU4eqnf9aQDDABhlCfcpoLOg3kp1aDC+K8nzr2XR+8agJchyK3CapKUgkpLTfY5J1Vkm7it3MIk/uGNOXSu3+FmidzI368/VRsoTgWhEpoMjkTBu5u4Tw4Su6DNCwt1JeiH2RMhuriBVjPUXRzLN3Fm2fKtoBY6esq62fTJMcUTdfcCul+5rgU9fJakXWrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qaJdTwWqGxWev3qfhYD6fHCM+cdm/m4QCWX56g/WyUU=; b=V29AwnHxmBa6H1F242FrUHNhP/jShyVxt4AWgtiAF/SkweNeZ1nQUvR7d9jZg1GBBkyXFNuAJg2LS8SDASRilbPXaxifdP1LEJ4E4DfSi7mVQdGxtgYuQ0ivmDPd+zb1Nz5eNEZ74QSfni5C1leCmX9mRHTksBETreLJU3IaRdWcMHcmnG8Ev5uxTIbkrs+QLVMkwfWSqLqjTOX1NPTFlBVtf2rCESL76dapnOfhdl0RdGtGBUUZs7VOhbTdTZ+j2yrgARM+1VZ3PhMkHLlW8Mm7UFE/TfuR+tWMy4J78Ozf3okXjkORbt9lEQUAimaO1DfdR2FGUUhQEVK/ghmjPg== Received: from BL0PR06MB4978.namprd06.prod.outlook.com (2603:10b6:208:6d::13) by BYAPR06MB4342.namprd06.prod.outlook.com (2603:10b6:a03:5e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.23; Thu, 5 May 2022 13:04:18 +0000 Received: from BL0PR06MB4978.namprd06.prod.outlook.com ([fe80::45b6:ca3d:2084:e2]) by BL0PR06MB4978.namprd06.prod.outlook.com ([fe80::45b6:ca3d:2084:e2%3]) with mapi id 15.20.5206.024; Thu, 5 May 2022 13:04:18 +0000 From: Sumit Sengupta To: "David G. Johnston" , "pgsql-docs@lists.postgresql.org" Subject: Re: Specify bytes storage for enum data types Thread-Topic: Specify bytes storage for enum data types Thread-Index: AQHYX/zeuuiqct+NoEqymVq3LlBqqq0QN/gAgAAJIfw= Date: Thu, 5 May 2022 13:04:18 +0000 Message-ID: References: <165169921944.683.8982699018922635049@wrigleys.postgresql.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [taKfqM3be+JId+KrOYJBHThWs1xHt2qk] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1869b372-acc2-4ff8-03dd-08da2e97c3c1 x-ms-traffictypediagnostic: BYAPR06MB4342:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iyqLVvLx/Ux1a+Cqa9XsFcuhLsPlS3LYHqv5A7wqADgWdRUeiQTrT52gLqpt/Wpby74XKDqoeuz/j0BqjlATV3JX0sNuS0lFCPTsjDHHBQt5rMKKHj+xwT6MZq2uvygQdkXc7qsXZT6Ud+i8ULpBww7y9XRT31d1VT/9zGlHKdLZFn9C2xqzrugur/HnGDWXad3zDcUnBLMM0AUBRFstnNqpfq0ZQ6y4inhHkxI6SagySSMWrrAa0j6KqoV8UfauNKPrzY2Ix5849uICM1KrY5xdX+jm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EfD+2PnzBh9dsXfr15YrE8RvqhFIrcR2kSEnsE7GOuILqWvyb?= =?us-ascii?Q?O4oJFoI32zfBehhbLOL+iQS1bV2ndKml38e39t0T8FqTKEmXzF+D9hP/mM2n?= =?us-ascii?Q?FdmMjxA8EIs=3D?= Content-Type: multipart/alternative; boundary="_000_BL0PR06MB4978F6C0B69F3F03AEBED0FBB3C29BL0PR06MB4978namp_" MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-89723.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR06MB4978.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 1869b372-acc2-4ff8-03dd-08da2e97c3c1 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2022 13:04:18.4867 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR06MB4342 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_BL0PR06MB4978F6C0B69F3F03AEBED0FBB3C29BL0PR06MB4978namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks David. I overlooked that at the bottom. I guess it would still be ni= ce to mention the storage at the top like other data types. ________________________________ From: David G. Johnston Sent: Thursday, May 5, 2022 8:30 AM To: ssengupta@hotmail.com ; pgsql-docs@lists.postgre= sql.org Subject: Re: Specify bytes storage for enum data types On Wednesday, May 4, 2022, PG Doc comments form > wrote: The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/14/datatype-enum.html Description: I love Postgres !! And also its documentation !! While reading through data types, it occurred to me that most ( if not ever= y ) other data types has a chart on the top saying how many bytes it occuies. Like all numerical, date or char data types. For enum it would be nice to have that info as well. I am assuming it is variable ? May be 1 or 2 bytes for the definition and the rest depending on the enum values ? A clarification would be nice ! Second to last sentence on the page. Storage only measures the size of a single value on a data row. David J. --_000_BL0PR06MB4978F6C0B69F3F03AEBED0FBB3C29BL0PR06MB4978namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Thanks David. I overlooked that at the bottom. I guess it would still = be nice to mention the storage at the top like other data types. 

From: David G. Johnston <= ;david.g.johnston@gmail.com>
Sent: Thursday, May 5, 2022 8:30 AM
To: ssengupta@hotmail.com <ssengupta@hotmail.com>; pgsql-docs@= lists.postgresql.org <pgsql-docs@lists.postgresql.org>
Subject: Re: Specify bytes storage for enum data types
 


On Wednesday, May 4, 2022, PG Doc comments form <noreply@postgresql.org> wrote:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/datatype-enum.html
Description:

I love Postgres !! And also its documentation !!

While reading through data types, it occurred to me that most ( if not ever= y
) other data types has a chart on the top saying how many bytes it
occuies.
Like all numerical, date or char data types.

For enum it would be nice to have that info as well.
I am assuming it is variable ? May be 1 or 2 bytes for the definition and the rest depending on the enum values ?

A clarification would be nice !

Second to last sentence on the page.

Storage only measures the size of a single value on a data row.

David J. 
--_000_BL0PR06MB4978F6C0B69F3F03AEBED0FBB3C29BL0PR06MB4978namp_--