Re: pl/perl example in the doc no longer works in 9.1

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Amit Khandekar <amit(dot)khandekar(at)enterprisedb(dot)com>, hackers(at)postgresql(dot)org
Subject: Re: pl/perl example in the doc no longer works in 9.1
Date: 2011-10-12 16:23:42
Message-ID: AEC30EC5-C76D-4D8C-A6E8-55E887C4575D@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 existing functions.

Best,

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-10-12 16:26:31 Re: COUNT(*) and index-only scans
Previous Message Tom Lane 2011-10-12 16:15:29 Re: pl/perl example in the doc no longer works in 9.1