| From: | "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> |
|---|---|
| To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Hackers" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: DROP COLUMN Progress |
| Date: | 2002-07-09 04:08:52 |
| Message-ID: | GNELIHDDFBOCMGBFGEFOKEAJCDAA.chriskl@familyhealth.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> > test=# create table test (a int4, b int4, c int4, d int4);
> > CREATE TABLE
> > test=# insert into test values (1,2,3,4);
> > INSERT 16588 1
> > test=# alter table test drop b;
> > ALTER TABLE
> > test=# select * from test;
> > a | d | d
> > ---+---+---
> > 1 | 3 | 4
> > (1 row)
>
> What of
>
> SELECT a,c,d FROM test
>
> I'll bet that doesn't work at all...
Yeah, broken. Damn.
test=# SELECT a,c,d FROM test;
a | c | d
---+---+---
1 | 2 | 3
(1 row)
test=# SELECT a,d FROM test;
a | d
---+---
1 | 3
(1 row)
test=# SELECT d,c,a FROM test;
d | c | a
---+---+---
3 | 2 | 1
(1 row)
Chris
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas Lockhart | 2002-07-09 04:11:32 | Units for storage of internal time zone offsets |
| Previous Message | Tom Lane | 2002-07-09 04:02:55 | Re: DROP COLUMN Progress |