Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V95Kt-0001w0-Tt for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Aug 2013 03:31:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V95Kt-0000Gs-5y for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Aug 2013 03:31:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V95Kq-0000Gh-TP for pgsql-hackers@postgresql.org; Tue, 13 Aug 2013 03:31:52 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V95Kh-0001JO-AR for pgsql-hackers@postgresql.org; Tue, 13 Aug 2013 03:31:52 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1V95Kc-0007qT-2c; Mon, 12 Aug 2013 23:31:38 -0400 Date: Mon, 12 Aug 2013 23:31:38 -0400 From: Bruce Momjian To: Tom Lane Cc: amutu@amutu.com, PostgreSQL-development Subject: Re: [BUGS] BUG #8335: trim() un-document behaviour Message-ID: <20130813033138.GH12510@momjian.us> References: <20130807161953.GZ11189@momjian.us> <19166.1376060775@sss.pgh.pa.us> <20130809162359.GA3353@momjian.us> <20130812141144.GA12510@momjian.us> <21732.1376330108@sss.pgh.pa.us> <22386.1376331481@sss.pgh.pa.us> <20130812202910.GE12510@momjian.us> <26073.1376341103@sss.pgh.pa.us> <20130812211930.GG12510@momjian.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="wchHw8dVAp53YPj8" Content-Disposition: inline In-Reply-To: <20130812211930.GG12510@momjian.us> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -4.7 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --wchHw8dVAp53YPj8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Aug 12, 2013 at 05:19:30PM -0400, Bruce Momjian wrote: > Attached are docs that add the new syntax, and mention it is > non-standard; you can see the output here: > > http://momjian.us/tmp/pgsql/functions-string.html#FUNCTIONS-STRING-SQL > > We do document three syntaxes for substring() in the same table, one row > for each, so there is precedent for doing this. Attached is an updated patch with a proper example. I could move the extra syntax into the description of the existing trim entry instead. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + --wchHw8dVAp53YPj8 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="trim.diff" diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml new file mode 100644 index 6154621..b21c433 *** a/doc/src/sgml/func.sgml --- b/doc/src/sgml/func.sgml *************** *** 1296,1301 **** --- 1296,1320 ---- + trim + + trim(leading | trailing + | both from + string + , characters + ) + + text + + Non-standard version of trim() + + trim(both from 'xTomxx', 'x') + Tom + + + + + upper upper(string) --wchHw8dVAp53YPj8 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --wchHw8dVAp53YPj8--