pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: khalil.alijani@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6463: tables can have at most 1600 columns
Date: Sat, 18 Feb 2012 11:30:22 -0500
Message-ID: <27713.1329582622@sss.pgh.pa.us> (raw)
In-Reply-To: <E1RyhLZ-00016L-Ge@wrigleys.postgresql.org>
References: <E1RyhLZ-00016L-Ge@wrigleys.postgresql.org>

> I drop a column but Postgresql still shows old (deleted) columns...

> My Java program does this:
> drop a boolean column and then add same column (with same name and
> specification), in dozens times, because updating (this) column is very slow
> !!!
> AND finally it says "tables can have at most 1600 columns"

Sorry, this is not a bug, or at least we're not going to fix it.
The fact that DROP COLUMN doesn't physically remove the column is an
intentional design decision.  If we didn't do it that way, dropping
a column would require rewriting the entire table (and all its indexes)
and so would be horribly slow.

Perhaps if you discussed why you think that repeatedly dropping and
re-adding a column is a useful thing to do, we could help you find
another way.  The bugs list is not the place for that discussion,
however.

			regards, tom lane



view thread (2+ messages)

Message-ID: <27713.1329582622@sss.pgh.pa.us>
Permalink:  ../27713.1329582622@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27713.1329582622@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, khalil.alijani@gmail.com
  Subject: Re: BUG #6463: tables can have at most 1600 columns
  In-Reply-To: <27713.1329582622@sss.pgh.pa.us>
  References: <E1RyhLZ-00016L-Ge@wrigleys.postgresql.org> <27713.1329582622@sss.pgh.pa.us>

* 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