pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: amutu@amutu.com
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] BUG #8335: trim() un-document behaviour
Date: Mon, 12 Aug 2013 23:31:38 -0400
Message-ID: <20130813033138.GH12510@momjian.us> (raw)
In-Reply-To: <20130812211930.GG12510@momjian.us>
References: <E1V2XgU-0003tb-Ii@wrigleys.postgresql.org>
	<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachments:

trim.diff (text/x-diff, 1.0K) download 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 ---- <row> <entry> <indexterm> + <primary>trim</primary> + </indexterm> + <literal><function>trim(<optional>leading | trailing + | both</optional> <optional>from</optional> + <parameter>string</parameter> + <optional><parameter>, characters</parameter></optional> + )</function></literal> + </entry> + <entry><type>text</type></entry> + <entry> + Non-standard version of <function>trim()</> + </entry> + <entry><literal>trim(both from 'xTomxx', 'x')</literal></entry> + <entry><literal>Tom</literal></entry> + </row> + + <row> + <entry> + <indexterm> <primary>upper</primary> </indexterm> <literal><function>upper(<parameter>string</parameter>)</function></literal>

view thread (16+ messages)  latest in thread

Message-ID: <20130813033138.GH12510@momjian.us>
Permalink:  ../20130813033138.GH12510@momjian.us/
Also on:    postgresql.org/message-id/20130813033138.GH12510@momjian.us

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, amutu@amutu.com, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #8335: trim() un-document behaviour
  In-Reply-To: <20130813033138.GH12510@momjian.us>
  References: <E1V2XgU-0003tb-Ii@wrigleys.postgresql.org> <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> <20130813033138.GH12510@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox