Re: join and dynamic view

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
To: Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk>
Cc: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>, pgsql-sql(at)postgresql(dot)org
Subject: Re: join and dynamic view
Date: 2002-12-17 14:31:55
Message-ID: 3DFF355B.4000905@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Gary Stainburn wrote:

>
> I found that the compile error complaining about the 'OR' was on the
>
> CREATE OR REPLACE FUNCTION
>
> line. I removed the 'OR REPLACE' and everything worked fine.

OR REPLACE is since postgres 7.2

>
>
> Also I had to change the returns to 'opaque' and 'return 0' to 'return
> null'

In this case it's ok to "return null", but if you create "before"
trigger you shoud "return new", because "return null" forces postgres
not to insert any data.

Tomasz Myrta

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Gary Stainburn 2002-12-17 14:57:00 Upgrade question - was Re: join and dynamic view
Previous Message Christoph Haller 2002-12-17 14:15:19 Re: join and dynamic view