Varchar standard compliance

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Varchar standard compliance
Date: 2000-11-16 18:16:59
Message-ID: Pine.LNX.4.21.0011161912220.783-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Currently, CHAR is correctly interpreted as CHAR(1), but VARCHAR is
incorrectly interpreted as VARCHAR(<infinity>). Any reason for that,
besides the fact that it of course makes much more sense than VARCHAR(1)?

Additionally, neither CHAR nor VARCHAR seem to bark on too long input,
they just truncate silently.

I'm wondering because should the bit types be made to imitate this
incorrect behaviour, or should they start out correctly?

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Adam Lang 2000-11-16 18:29:39 Re: [HACKERS] Re: PHPBuilder article -- Postgres vs MySQL
Previous Message Frank Joerdens 2000-11-16 18:08:40 Re: [HACKERS] Re: PHPBuilder article -- Postgres vs MySQL