Bug or Feature?

From: "Herbert R(dot) Ambos" <hrambos(at)transco(dot)ph>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Bug or Feature?
Date: 2004-02-10 19:48:03
Message-ID: 001701c3f00e$cec10330$78fba8c0@herbert
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hey guys,

I found this interesting…

test=# create table t ( c char);

CREATE TABLE

test =# \d t

Table "public.t"

Column | Type | Modifiers

--------+--------------+-----------

c | character(1) |

test =# alter table t drop column c;

ALTER TABLE

test =# \d t

Table "public.t"

Column | Type | Modifiers

--------+------+-----------

test =# select * from t;

--

(0 rows)

test =# create table t2 ();

CREATE TABLE

test =# select * from t2;

--

(0 rows)

I mean, we have a table with nothing on it. Of course this maybe useful
if like to check if an object exists in pg_class for some reasons. But
nah… we can have other workarounds for that. Is this allowed in SQL?

Thanks,

herbert

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.542 / Virus Database: 336 - Release Date: 11/18/2003

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message boyd (remove_) tb_moore_@bealenet_.com 2004-02-10 19:50:45 Re: max timestamp
Previous Message Michael Sterling 2004-02-10 18:14:04 max timestamp