Re: SELECT INSTEAD - Mailing list pgsql-sql

From Richard Huxton
Subject Re: SELECT INSTEAD
Date
Msg-id 460B617B.4010005@archonet.com
Whole thread Raw
In response to SELECT INSTEAD  ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>)
List 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


pgsql-sql by date:

Previous
From: "Phillip Smith"
Date:
Subject: Re: SELECT INSTEAD
Next
From: "Radhika Sambamurti"
Date:
Subject: Temp tbl Vs. View