Re: bpchar datatype is not equal to character(1) data type

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: yanliang lei <msdnchina(at)163(dot)com>
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: bpchar datatype is not equal to character(1) data type
Date: 2023-06-06 16:46:06
Message-ID: CAKFQuwaXY8okD9PS8XnSqkpju51Uh8HYbfrodntwuPRZLjNMfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Tue, Jun 6, 2023 at 7:31 AM yanliang lei <msdnchina(at)163(dot)com> wrote:

>
> Based on the above description, there is a deduction as follows:
> bpchar datatype is equal to character(1) data type
>

Nope, bpchar is not equal to any user-facing data type by virtue of it
being an internal implementation-only data type. Based upon your example
I'd say it is basically a length-unconstrained character equivalent and
there is no such user-facing data type defined.

David J.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Kirk Wolak 2023-06-06 19:48:42 Re: pass open cursor via USING in execute staement
Previous Message Laurenz Albe 2023-06-06 16:45:37 Re: bpchar datatype is not equal to character(1) data type