Re: SELECT INSTEAD

From: Richard Huxton <dev(at)archonet(dot)com>
To: Phillip Smith <phillip(dot)smith(at)weatherbeeta(dot)com(dot)au>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: SELECT INSTEAD
Date: 2007-03-29 06:49:31
Message-ID: 460B617B.4010005@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Phillip Smith wrote:
>
> I'm trying to create a view of the query below, but I'm being barked at
> about "rules on SELECT must have action INSTEAD SELECT". I don't have any
> rules in my database, and I don't know how this query is trying to create
> one. The query does work if I just run it interactively. Any help would be
> much appreciated.

You have two queries here - which one is giving the problem?

> SELECT DISTINCT ON (m1.id)
...
> ;
>
> SELECT d.id AS "ID",
...
> ;

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Phillip Smith 2007-03-29 06:58:35 Re: SELECT INSTEAD
Previous Message Michael Fuhr 2007-03-29 06:48:34 Re: SELECT INSTEAD