Lists: | pgsql-hackers |
---|
From: | Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com> |
Subject: | Add utility functions to plperl [PATCH] |
Date: | 2010-01-13 19:42:35 |
Message-ID: | 20100113194235.GA8024@timac.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
This is the first of the patches to be split out from the former 'plperl
feature patch 1'.
Changes in this patch:
- Added utility functions: quote_literal, quote_nullable, quote_ident,
encode_bytea, decode_bytea, looks_like_number,
encode_array_literal, encode_array_constructor.
- Stored procedure subs are now given names ($name__$oid).
This is invisible to PL/Perl stored procedures but makes
tools like Devel::NYTProf and Devel::Cover _much_ more useful.
- Warnings no longer have an extra newline in the NOTICE text.
- Corresponding documentation changes in plperl.sgml, plus:
Removed some trailing whitespace.
Made some examples use more idiomatic perl.
Added the missing ', arguments' to docs of spi_exec_prepared().
- Assorted minor changes
Various minor optimizations like pre-growing data structures.
Makes proper use of the recently updated ppport.h.
Tim.
Attachment | Content-Type | Size |
---|---|---|
plperl-add-util-functions.patch | text/x-patch | 43.3 KB |
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Add utility functions to plperl [PATCH] |
Date: | 2010-01-20 01:34:05 |
Message-ID: | 4B565D8D.3080603@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Tim Bunce wrote:
> This is the first of the patches to be split out from the former 'plperl
> feature patch 1'.
>
> Changes in this patch:
>
> - Added utility functions: quote_literal, quote_nullable, quote_ident,
> encode_bytea, decode_bytea, looks_like_number,
> encode_array_literal, encode_array_constructor.
>
> - Warnings no longer have an extra newline in the NOTICE text.
>
> - Corresponding documentation changes in plperl.sgml, plus:
> Removed some trailing whitespace.
> Made some examples use more idiomatic perl.
> Added the missing ', arguments' to docs of spi_exec_prepared().
>
>
Applied with a little editing. I also added CVS markers where they were
missing.
cheers
andrew