From 02138357ffc8c41a3d646035368712a5394f1f5f Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Mon, 24 Sep 2007 01:29:30 +0000 Subject: Remove "convert 'blah' using conversion_name" facility, because if it produces text it is an encoding hole and if not it's incompatible with the spec, whatever the spec means (which we're not sure about anyway). --- doc/src/sgml/func.sgml | 27 +++++++-------------------- doc/src/sgml/ref/create_conversion.sgml | 6 ++---- 2 files changed, 9 insertions(+), 24 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 5b5f961426b..ca9c5355293 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -1022,9 +1022,6 @@ char_length - - convert - lower @@ -1119,22 +1116,6 @@ 4 - - convert(string - using conversion_name) - bytea - - Change encoding using specified conversion name. Conversions - can be defined by CREATE CONVERSION. Also - there are some pre-defined conversion names. See for available conversion - names. The string must be valid in the - source encoding. - - convert('PostgreSQL' using iso_8859_1_to_utf8) - 'PostgreSQL' in UTF8 (Unicode, 8-bit) encoding - - lower(string) text @@ -1245,6 +1226,9 @@ chr + + convert + convert_from @@ -1374,6 +1358,9 @@ original encoding is specified by src_encoding. The string must be valid in this encoding. + Conversions can be defined by CREATE CONVERSION. + Also there are some pre-defined conversions. See for available conversions. convert( 'text_in_utf8', 'UTF8', 'LATIN1') text_in_utf8 represented in ISO 8859-1 encoding diff --git a/doc/src/sgml/ref/create_conversion.sgml b/doc/src/sgml/ref/create_conversion.sgml index 8454abbd21b..b606f44d3e4 100644 --- a/doc/src/sgml/ref/create_conversion.sgml +++ b/doc/src/sgml/ref/create_conversion.sgml @@ -1,4 +1,4 @@ - + @@ -27,9 +27,7 @@ CREATE [ DEFAULT ] CONVERSION name CREATE CONVERSION defines a new conversion between - character set encodings. Conversion names can be used in the - convert function - to specify a particular encoding conversion. Also, conversions that + character set encodings. Also, conversions that are marked DEFAULT can be used for automatic encoding conversion between client and server. For this purpose, two conversions, from encoding A to -- cgit v1.2.3