Re: Requirement for pgAdmin browser.

From: Jean-Michel POURE <jm(dot)poure(at)freesurf(dot)fr>
To: pgsql-hackers(at)postgresql(dot)org
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Requirement for pgAdmin browser.
Date: 2001-12-15 14:56:23
Message-ID: 200112151456.fBFEuOG13451@www1.translationforge
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-hackers

Le Vendredi 14 Décembre 2001 14:04, vous avez écrit :
> It is observed that while creating table, once we define the attributes and
> their properties, we can not change the attribute type. e.g. If we have
> defined an attribute of type int. Now if one want to change it to numeric,
> it is not allowed thorugh the pgAdmin GUI. However we have the option of
> further addition of the attribute to the table. Also it is not possible to
> remove the present attribute(s) in the table.

PostgreSQL does not allow table modification. The community have been waiting
for an ALTER TABLE DROP COLUMN and type PROMOTION / DEMOTION, for a long
time. Same as for Views and triggers : it is impossible to alter them... The
politics of PostgreSQL is to offer advanced features before basic ones.

Is anyone working seriously on those issues?

>> Is this a valid to have this kind of restriction if one want to do similar
> change?? I think either we have to go to the psql prompt and use some
> command, or refine the whole table after dropping the old one.
> Is there any solution to this through GUI, as it is easy to do it.

The only workaround by now is to use CREATE TABLE AS and dropping the old
table.

In pgAdmin I, we used to offer a development mode where you could modify all
parameters. Then the changes were applied to the database in a pseudo
compilation (drop/create). Then, we decided to wait for real ALTER features
in PostgreSQL. We are still waiting for them.

Best regards
Jean-Michel POURE

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jean-Michel POURE 2001-12-15 15:00:03 Re: Requirement for pgAdmin browser.
Previous Message Hannu Krosing 2001-12-15 11:16:44 Re: [HACKERS] Platform Testing - Cygwin

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-12-15 18:06:24 Re: [HACKERS] Requirement for pgAdmin browser.
Previous Message Jean-Michel POURE 2001-12-15 14:42:21 mno-cygwin