pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: Gary Stainburn <gary.stainburn@ringways.co.uk>
Cc: Christoph Haller <ch@rodos.fzk.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: join and dynamic view
Date: Tue, 17 Dec 2002 15:31:55 +0100
Message-ID: <3DFF355B.4000905@klaster.net> (raw)
In-Reply-To: <3DFF2A7B.B26EEF93@rodos.fzk.de>
References: <3DFF2A7B.B26EEF93@rodos.fzk.de>
	<200212171411.53358.gary.stainburn@ringways.co.uk>

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





view thread (11+ messages)

Message-ID: <3DFF355B.4000905@klaster.net>
Permalink:  ../3DFF355B.4000905@klaster.net/
Also on:    postgresql.org/message-id/3DFF355B.4000905@klaster.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jasiek@klaster.net, gary.stainburn@ringways.co.uk, ch@rodos.fzk.de
  Subject: Re: join and dynamic view
  In-Reply-To: <3DFF355B.4000905@klaster.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox