Re: plpython3 - Mailing list pgsql-hackers

From James William Pye
Subject Re: plpython3
Date
Msg-id EE0EF975-4EA8-4CDD-A033-2A821D639297@jwp.name
Whole thread Raw
In response to Re: plpython3  (Greg Smith <greg@2ndquadrant.com>)
List pgsql-hackers
On Jan 14, 2010, at 7:08 PM, Greg Smith wrote:
> So more targeted examples like you're considering now would help.

So far, I have three specific examples in mind:

The first will illustrate the advantages of function modules wrt setup code in the module body. Primarily this is about
convenience.(I'm going to send this example when I send this message) 

The second is a generic after trigger that does manipulation logging for some simple replication purposes. This example
willillustrate one application of "native typing" as it provides direct access to a PG type's typoutput. 

The third one is a fairly old plpythonu example written by Elein that exercises SD to keep state for an aggregate. I'm
expectingthis to be a good candidate for showing off stateful functions. 


Other things I plan to cover, but nothing specific in mind yet:
Direct function callsInternal subtransactions, "with xact():" (something plpython can't do, save calling plpgsql =)

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: parallel regression test output
Next
From: James William Pye
Date:
Subject: Re: plpython3