Re: Rethinking user-defined-typmod before it's too late

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Rethinking user-defined-typmod before it's too late
Date: 2007-06-15 19:07:23
Message-ID: 200706152107.25785.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Am Freitag, 15. Juni 2007 18:14 schrieb Tom Lane:
> The current discussion about the tsearch-in-core patch has convinced me
> that there are plausible use-cases for typmod values that aren't simple
> integers.  For instance it could be sane for a type to want a locale or
> language selection as a typmod, eg tsvector('ru') or tsvector('sv').

That would also be very useful for the XML type with an optional XML schema
modification. I guess in a lot of use cases you would have to store the
mapping in a side table, if the typmod on disk remains an integer.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2007-06-15 19:14:18 Re: Load Distributed Checkpoints test results
Previous Message Stephen Frost 2007-06-15 19:01:52 Re: Rethinking user-defined-typmod before it's too late