pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martijn van Oosterhout <kleptog@svana.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Teodor Sigaev <teodor@sigaev.ru>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>
Subject: Re: User-defined typle similar to char(length) varchar(length)
Date: Thu, 3 Aug 2006 22:49:54 +0200
Message-ID: <20060803204954.GF20080@svana.org> (raw)
In-Reply-To: <25285.1154636333@sss.pgh.pa.us>
References: <20060731131520.GE29868@svana.org>
	<14115.1154353736@sss.pgh.pa.us>
	<44CF56BF.9070003@sigaev.ru>
	<1748.1154438988@sss.pgh.pa.us>
	<44CF6983.5060605@sigaev.ru>
	<20060801145156.GH30427@svana.org>
	<29387.1154489219@sss.pgh.pa.us>
	<44D23F6B.3090801@sigaev.ru>
	<20060803193754.GD20080@svana.org>
	<25285.1154636333@sss.pgh.pa.us>

On Thu, Aug 03, 2006 at 04:18:53PM -0400, Tom Lane wrote:
> > Also, there's the issue of converting
> > the arguments to a typmod, in the long term it'd have to be
> > user-defined per type.
> 
> I think we could legislate that the stored typmod is the same as what
> the user sees (and can't be negative).  The fact that it's different
> for some of the built-in types is a historical artifact that I'd love
> to get rid of.

But that makes NUMERIC(x,y) impossible to represent. That probably ok I
guess. I was just wondering if it would be reasonable to allow users to
create a currency type whose precision can be specified the same way as
for numeric.

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (18+ messages)  latest in thread

Message-ID: <20060803204954.GF20080@svana.org>
Permalink:  ../20060803204954.GF20080@svana.org/
Also on:    postgresql.org/message-id/20060803204954.GF20080@svana.org

 · 

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-hackers@postgresql.org
  Cc: kleptog@svana.org, tgl@sss.pgh.pa.us, teodor@sigaev.ru
  Subject: Re: User-defined typle similar to char(length) varchar(length)
  In-Reply-To: <20060803204954.GF20080@svana.org>

* 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