pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: Sorry..
Date: Mon, 15 Jul 2002 14:01:38 -0700
Message-ID: <200207151401.38968.josh@agliodbs.com> (raw)
In-Reply-To: <7344.1026703661@sss.pgh.pa.us>
References: <GNELIHDDFBOCMGBFGEFOAECDCDAA.chriskl@familyhealth.com.au>
	<7344.1026703661@sss.pgh.pa.us>


Christopher,

> In the bad old days when we couldn't distinguish explicit from implicit
> cast functions, I was wary of adding new cast pathways.  Too many
> implicit casts and you have no type system at all.  But in 7.3 there
> should be no reason to object to an explicit-only cast from numeric
> to text or vice versa.

I'd suggest making the explicit cast of numeric to text be the exact 
equivalent of:

SELECT btrim(to_char(numeric, '999,999,999,999.9999999999'))
or similar.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (4+ messages)

Message-ID: <200207151401.38968.josh@agliodbs.com>
Permalink:  ../200207151401.38968.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200207151401.38968.josh@agliodbs.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us, chriskl@familyhealth.com.au
  Subject: Re: Sorry..
  In-Reply-To: <200207151401.38968.josh@agliodbs.com>

* 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