Requirement for pgAdmin browser.

Started by Anil Jangamabout 24 years ago5 messages
#1Anil Jangam
anilj@indts.com

Hi Dave,

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.

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.

-anil.

#2Jean-Michel POURE
jm.poure@freesurf.fr
In reply to: Anil Jangam (#1)
Re: Requirement for pgAdmin browser.

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

#3Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Jean-Michel POURE (#2)
Re: [HACKERS] Requirement for pgAdmin browser.

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?

Agreed. We couldn't decide the best way to do it, so we did nothing. I
have hopes for 7.3.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#4Dave Page
dpage@vale-housing.co.uk
In reply to: Bruce Momjian (#3)
Re: [HACKERS] Requirement for pgAdmin browser.

-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: 15 December 2001 18:06
To: jm.poure@freesurf.fr
Cc: pgsql-hackers@postgresql.org; pgsql-cygwin@postgresql.org
Subject: Re: [HACKERS] [CYGWIN] Requirement for pgAdmin browser.

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?

Agreed. We couldn't decide the best way to do it, so we did
nothing. I have hopes for 7.3.

This is starting to become an issue for me. Personally I can live without
these features (though I'd rather not) because I know how to do these things
manually, however many pgAdmin users cannot (without help/pointing in the
right direction). Since I rewrote pgAdmin as pgAdmin II, the program is that
much more stable and easy to use (blowing my own trumpet somewhat!!) that
probably the most common support question I get asked these days is 'how do
I drop a column?'.

I don't want to try to pressure the developers on this as I know what that's
like myself, but this issue is imho *really* beginning to hold PostgreSQL
back from being less of a hackers database and more commonly used like M$
SQL (which though evil _is_ easy to use :-) ).

Regards, Dave.

#5Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Dave Page (#4)
Re: [HACKERS] Requirement for pgAdmin browser.

This is starting to become an issue for me. Personally I can live without
these features (though I'd rather not) because I know how to do these things
manually, however many pgAdmin users cannot (without help/pointing in the
right direction). Since I rewrote pgAdmin as pgAdmin II, the program is that
much more stable and easy to use (blowing my own trumpet somewhat!!) that
probably the most common support question I get asked these days is 'how do
I drop a column?'.

I don't want to try to pressure the developers on this as I know what that's
like myself, but this issue is imho *really* beginning to hold PostgreSQL
back from being less of a hackers database and more commonly used like M$
SQL (which though evil _is_ easy to use :-) ).

Yes. Sometimes we can't decide so we do nothing in hopes a better
solution will emerge. In some cases, such a solution does not exist and
we have to just do our best to implement these missing features.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026