Re: pl/perl example in the doc no longer works in 9.1 - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: pl/perl example in the doc no longer works in 9.1
Date
Msg-id AEC30EC5-C76D-4D8C-A6E8-55E887C4575D@kineticode.com
Whole thread Raw
In response to Re: pl/perl example in the doc no longer works in 9.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pl/perl example in the doc no longer works in 9.1
List pgsql-hackers
On Oct 12, 2011, at 9:15 AM, Tom Lane wrote:

> Well, the real question is why a function declared to return VOID cares
> at all about what the last command in its body is.  If this has changed
> since previous versions then I think it's a bug and we should fix it,
> not just change the example.

It has indeed changed, either in 9.0 or 9.1 (the latter, I think). I had to add a bunch of bare return statements to
existingfunctions. 

Best,

David



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pl/perl example in the doc no longer works in 9.1
Next
From: Robert Haas
Date:
Subject: Re: COUNT(*) and index-only scans