Re: Proposal for fixing numeric type-resolution issues

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Proposal for fixing numeric type-resolution issues
Date: 2000-05-17 17:18:46
Message-ID: Pine.LNX.4.21.0005171730490.349-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thomas Lockhart writes:

> Another 7.1 project is to work on alternate languages and character
> sets, to decouple multibyte and locale from the default SQL_TEXT
> character set. This will probably bring up issues similar to the
> numeric problems, and since these character sets will be added as
> user-defined types it will be important for the backend to understand
> how to convert them for comparison operations, for example.

Really? I always thought the character set would be some separate entity
and perhaps an oid reference would be stored with every character string
and attribute. That would get you around any type conversion as long as
the functions acting on character types take this "header" field into
account.

If you want to go the data type way then you'd need to have some sort of
most general character set to cast to. That could be Unicode but that
would require that every user-defined character set be a subset of
Unicode, which is perhaps not a good assumption to make. Also, I wonder
how collations would fit in there. Collations definitely can't be ordered
at all, so casting can't be done in a controlled fashion.

Just wondering...

--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-05-17 17:19:29 Re: AW: type conversion discussion
Previous Message Peter Eisentraut 2000-05-17 17:18:23 Re: ODBC & v7.0(Rel) Errors with Users and Databases