Re: text fields and performance for ETL - Mailing list pgsql-docs

From Laurenz Albe
Subject Re: text fields and performance for ETL
Date
Msg-id 92af57f4ea8bda556ad821178f071d8d7daac66a.camel@cybertec.at
Whole thread Raw
In response to text fields and performance for ETL  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
On Thu, 2021-11-11 at 09:44 +0000, Grega Jesih wrote:
> with this approach, why don't you eliminate char and varchar then ?
> Thanks for thinking over.

Two reasons:

- the SQL standard requires these types

- sometimes you want to enforce a length limit, and a "type modifier" like
  varchar(30) is cheaper than a check constraint

Yours,
Laurenz Albe




pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: Ltree pattern matching
Next
From: PG Doc comments form
Date:
Subject: \dp privileges "decoder" dropped in v12 of docs