CREATE VIEW interp AS select DISTINCT itemkey from songs; - Mailing list pgsql-bugs

From Peter Schaefer
Subject CREATE VIEW interp AS select DISTINCT itemkey from songs;
Date
Msg-id 380444A8.D89E8555@cys.de
Whole thread Raw
Responses Re: [BUGS] CREATE VIEW interp AS select DISTINCT itemkey from songs;  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Excuse my weak knowledge of SQL, but this doesn't work the way I expect it to work:

codiak=> CREATE VIEW interp AS select DISTINCT ON id id from interp;
CREATE
codiak=> select id from interp where id=1063;
id
-------
   1063
   1063
   1063
(3 rows)

codiak=> \d interp

Table    = interp
+----------------------------------+----------------------------------+-------+
|              Field               |              Type                | Length|
+----------------------------------+----------------------------------+-------+
| id                               | int4                             |     4 |
+----------------------------------+----------------------------------+-------+

--
Peter Schäfer - mailto:schaefer@cys.de, schaefer@dfu.de
Motto of the 3D Designer: "I am a meshed potato, I can do the twist".

pgsql-bugs by date:

Previous
From: Vitaly Piniygin
Date:
Subject: Re: [BUGS] Pg module "eats" environment
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] CREATE VIEW interp AS select DISTINCT itemkey from songs;