pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: BO ST <1599224321@qq.com>
To: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Bug:Create a table with 1600 fields (reaching the upper limit), then drop several fields and create new ones, but the addition failed.
Date: Thu, 4 May 2023 23:51:03 +0800
Message-ID: <tencent_F16D1126BC04AF612DC48B7C5C1DDE64FC05@qq.com> (raw)

Create a table with 1600 fields (reaching the upper limit), then drop several fields and create new ones, but the addition failed.


test=# alter table t1 add column co1599 int;
ALTER TABLE
test=# alter table t1 add column co1600 int;
ALTER TABLE

test=# alter table t1 add column co1601 int;
psql: ERROR:&nbsp; table can have at most 1600 columns



then, I drop column co1600 and add it again, failed:


test=# alter table t1 drop column co1600;
ALTER TABLE
test=# alter table t1 add column co1600 int;
psql:&nbsp;ERROR:&nbsp; table can have at most 1600 columns


then, I drop column co1600 again:


test=# alter table t1 drop column co1600;
psql:&nbsp;ERROR: column "co1600" of relation "t1" dose not exist

Message-ID: <tencent_F16D1126BC04AF612DC48B7C5C1DDE64FC05@qq.com>
Permalink:  ../tencent_F16D1126BC04AF612DC48B7C5C1DDE64FC05@qq.com/
Also on:    postgresql.org/message-id/tencent_F16D1126BC04AF612DC48B7C5C1DDE64FC05@qq.com

 · 

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-bugs@postgresql.org
  Cc: 1599224321@qq.com
  Subject: Re: Bug:Create a table with 1600 fields (reaching the upper limit), then drop several fields and create new ones, but the addition failed.
  In-Reply-To: <tencent_F16D1126BC04AF612DC48B7C5C1DDE64FC05@qq.com>
  References: <tencent_F16D1126BC04AF612DC48B7C5C1DDE64FC05@qq.com>

* 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