]> granicus.if.org Git - postgresql/commit
Add utility functions to PLPerl:
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 20 Jan 2010 01:08:21 +0000 (01:08 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 20 Jan 2010 01:08:21 +0000 (01:08 +0000)
commit05672e50458dc00b4a243c2d9bead0d96f7adbc1
tree772add916c5d7f6a95d1c500017c00f7f74cc15f
parent5b13d1ff5311db305911ed9c5b788db77763d4f9
Add utility functions to PLPerl:
    quote_literal, quote_nullable, quote_ident,
    encode_bytea, decode_bytea, looks_like_number,
    encode_array_literal, encode_array_constructor.
Split SPI.xs into two - SPI.xs now contains only SPI functions. Remainder
are in new Util.xs.
Some more code and documentation cleanup along the way, as well as
adding some CVS markers to files missing them.

Original patch from Tim Bunce, with a little editing from me.
14 files changed:
doc/src/sgml/plperl.sgml
src/pl/plperl/GNUmakefile
src/pl/plperl/SPI.xs
src/pl/plperl/Util.xs [new file with mode: 0644]
src/pl/plperl/expected/plperl_elog.out
src/pl/plperl/expected/plperl_util.out [new file with mode: 0644]
src/pl/plperl/plc_perlboot.pl
src/pl/plperl/plc_safe_bad.pl
src/pl/plperl/plc_safe_ok.pl
src/pl/plperl/plperl.c
src/pl/plperl/plperl.h
src/pl/plperl/spi_internal.c [deleted file]
src/pl/plperl/sql/plperl_util.sql [new file with mode: 0644]
src/pl/plperl/text2macro.pl