pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedremoving fields
4+ messages / 4 participants
[nested] [flat]
* removing fields
@ 2002-09-25 14:34 Jodi Kanter <jkanter@virginia.edu>
0 siblings, 1 reply; 4+ messages in thread
From: Jodi Kanter @ 2002-09-25 14:34 UTC (permalink / raw)
To: pgsql-admin
Does version 7.2 of Postgresql allow us to remove a column from a table? It does not appear to be working but I may be getting the syntax wrong. I thought this was a feature that was going to be added??
Thanks
Jodi
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: removing fields
@ 2002-09-25 14:48 Kevin Brannen <kevinb@nurseamerica.net>
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Brannen @ 2002-09-25 14:48 UTC (permalink / raw)
To: Jodi Kanter <jkanter@virginia.edu>; pgsql-admin
Not in 7.2, but it's in 7.3(beta).
HTH...
-----Original Message-----
From: Jodi Kanter [mailto:jkanter@virginia.edu]
Sent: Wed 9/25/2002 9:34 AM
To: Postgres Admin List
Cc:
Subject: [ADMIN] removing fields
Does version 7.2 of Postgresql allow us to remove a column from a table? It does not appear to be working but I may be getting the syntax wrong. I thought this was a feature that was going to be added??
Thanks
Jodi
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: removing fields
@ 2002-09-25 18:41 Andrew Sullivan <andrew@libertyrms.info>
parent: Jodi Kanter <jkanter@virginia.edu>
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Sullivan @ 2002-09-25 18:41 UTC (permalink / raw)
To: pgsql-admin
On Wed, Sep 25, 2002 at 10:34:47AM -0400, Jodi Kanter wrote:
> Does version 7.2 of Postgresql allow us to remove a column from a
> table?
No.
> syntax wrong. I thought this was a feature that was going to be
> added??
Yes. 7.3.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: removing fields
@ 2002-09-26 00:56 Devinder K Rajput <Devinder.Rajput@ipaper.com>
0 siblings, 0 replies; 4+ messages in thread
From: Devinder K Rajput @ 2002-09-26 00:56 UTC (permalink / raw)
To: pgsql-admin
Yoou could do the following:
SELECT list_of_all_columns_you_want_to_keep
INTO TABLE new_table
FROM old_table;
DROP TABLE old_table;
ALTER TABLE new_table RENAME TO old_table;
I saw this in Bruce Momjian'n book "PostgreSQL Introduction and Concepts".
Regards
Devinder Rajput
Stores Division Corporate Offices
Chicago, IL
(773) 442-6474
Andrew Sullivan
<andrew@libertyrms.inf To: Postgres Admin List <pgsql-admin@postgresql.org>
o> cc:
Sent by: Subject: Re: [ADMIN] removing fields
pgsql-admin-owner@post
gresql.org
09/25/2002 01:41 PM
On Wed, Sep 25, 2002 at 10:34:47AM -0400, Jodi Kanter wrote:
> Does version 7.2 of Postgresql allow us to remove a column from a
> table?
No.
> syntax wrong. I thought this was a feature that was going to be
> added??
Yes. 7.3.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2002-09-26 00:56 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-09-25 14:34 removing fields Jodi Kanter <jkanter@virginia.edu>
2002-09-25 18:41 ` Andrew Sullivan <andrew@libertyrms.info>
2002-09-25 14:48 Re: removing fields Kevin Brannen <kevinb@nurseamerica.net>
2002-09-26 00:56 Re: removing fields Devinder K Rajput <Devinder.Rajput@ipaper.com>
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