Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 39410476003 for ; Tue, 17 Dec 2002 10:02:52 -0500 (EST) Received: from stan.ringways.co.uk (hub.ringways.co.uk [213.38.87.130]) by postgresql.org (Postfix) with ESMTP id 39F2B475FD4 for ; Tue, 17 Dec 2002 10:02:51 -0500 (EST) Received: from gary.ringways.co.uk ([10.1.1.2]) by stan.ringways.co.uk with esmtp (Exim 3.22 #1) id 18OJDg-0005VJ-00; Tue, 17 Dec 2002 15:01:16 +0000 Content-Type: text/plain; charset="iso-8859-1" From: Gary Stainburn Organization: Ringways Garages Ltd To: Tomasz Myrta Subject: Upgrade question - was Re: join and dynamic view Date: Tue, 17 Dec 2002 14:57:00 +0000 User-Agent: KMail/1.4.3 Cc: Christoph Haller , pgsql-sql@postgresql.org References: <3DFF2A7B.B26EEF93@rodos.fzk.de> <200212171411.53358.gary.stainburn@ringways.co.uk> <3DFF355B.4000905@klaster.net> In-Reply-To: <3DFF355B.4000905@klaster.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200212171457.00598.gary.stainburn@ringways.co.uk> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/207 X-Sequence-Number: 10795 On Tuesday 17 Dec 2002 2:31 pm, Tomasz Myrta wrote: > 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 That explains it - the server I'm developing on is quite old - I didn't realise how old. I'm about to do an upgrade from 7.1.3 to 7.2.1-5 over christmas in fact. Will I need to dump/restore the database for this upgrade? > > > 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 -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000