From 893b57c871b97c9324e3eea77409e487a1e22ae8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 3 May 2005 19:17:59 +0000 Subject: Alter the signature for encoding conversion functions to declare the output area as INTERNAL not CSTRING. This is to prevent people from calling the functions by hand. This is a permanent solution for the back branches but I hope it is just a stopgap for HEAD. --- doc/src/sgml/ref/create_conversion.sgml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/create_conversion.sgml b/doc/src/sgml/ref/create_conversion.sgml index 3b941b80bb1..9bf88807c14 100644 --- a/doc/src/sgml/ref/create_conversion.sgml +++ b/doc/src/sgml/ref/create_conversion.sgml @@ -1,4 +1,4 @@ - + @@ -8,7 +8,7 @@ CREATE CONVERSION - define a new conversion + define a new encoding conversion @@ -26,10 +26,12 @@ CREATE [DEFAULT] CONVERSION name Description - CREATE CONVERSION defines a new encoding - conversion. Conversion names may be used in the convert function + CREATE CONVERSION defines a new conversion between + character set encodings. Conversion names may be used in the + convert function to specify a particular encoding conversion. Also, conversions that - are marked DEFAULT can be used for automatic encoding conversion between + are marked DEFAULT can be used for automatic encoding + conversion between client and server. For this purpose, two conversions, from encoding A to B and from encoding B to A, must be defined. @@ -109,7 +111,7 @@ conv_proc( integer, -- source encoding ID integer, -- destination encoding ID cstring, -- source string (null terminated C string) - cstring, -- destination string (null terminated C string) + internal, -- destination (fill with a null terminated C string) integer -- source string length ) RETURNS void; -- cgit v1.2.3