pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Tatsuo Ishii <ishii@sraoss.co.jp>
To: chuxiongzhong@gmail.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Proposal to Compile a 256-Byte Identifier Length Version Alongside the Current 64-Byte Version
Date: Tue, 10 Oct 2023 11:26:12 +0200
Message-ID: <deed04f45d29d891280a0c95845e2486b36b471f.camel@cybertec.at> (raw)
In-Reply-To: <20231010.155317.1680295102845562806.t-ishii@sranhm.sra.co.jp>
References: <CAKabb9VWBgeLfVxq=SqfW72W8wP5c3-nQBexowubxahVPpLK3Q@mail.gmail.com>
	<20231010.155317.1680295102845562806.t-ishii@sranhm.sra.co.jp>

On Tue, 2023-10-10 at 15:53 +0900, Tatsuo Ishii wrote:
> Another solution would be, letting the meaning of NAMEDATALEN to be
> number of *characters*, not the number of bytes. This way, you can use
> up to 64 UTF-8 characters. In my understanding MySQL already does this
> way. I know this requires non trivial code modifications to PostgreSQL
> but would be better than to make binaries with random NAMEDATALEN
> values.

Since "name" is a fixed-length data type, that would require the stored
size to increase to accomodate the extra bytes.  Wouldn't that change the
storage format and break pg_upgrade?

Yours,
Laurenz Albe





view thread (8+ messages)  latest in thread

Message-ID: <deed04f45d29d891280a0c95845e2486b36b471f.camel@cybertec.at>
Permalink:  ../deed04f45d29d891280a0c95845e2486b36b471f.camel@cybertec.at/
Also on:    postgresql.org/message-id/deed04f45d29d891280a0c95845e2486b36b471f.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, ishii@sraoss.co.jp, chuxiongzhong@gmail.com
  Subject: Re: Proposal to Compile a 256-Byte Identifier Length Version Alongside the Current 64-Byte Version
  In-Reply-To: <deed04f45d29d891280a0c95845e2486b36b471f.camel@cybertec.at>
  References: <CAKabb9VWBgeLfVxq=SqfW72W8wP5c3-nQBexowubxahVPpLK3Q@mail.gmail.com> <20231010.155317.1680295102845562806.t-ishii@sranhm.sra.co.jp> <deed04f45d29d891280a0c95845e2486b36b471f.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox