Specify bytes storage for enum data types

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: ssengupta(at)hotmail(dot)com
Subject: Specify bytes storage for enum data types
Date: 2022-05-04 21:20:19
Message-ID: 165169921944.683.8982699018922635049@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

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 every
) 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 !

Thanks
- Sumit Sengupta

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G. Johnston 2022-05-05 12:30:58 Re: Specify bytes storage for enum data types
Previous Message Alvaro Herrera 2022-05-03 12:02:13 Re: BETWEEN operator not indexed