Re: AW: AW: [HACKERS] Re: atttypmod of 0

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Andreas(dot)Zeugswetter(at)telecom(dot)at (Zeugswetter Andreas DBT)
Cc: pgsql-hackers(at)hub(dot)org
Subject: Re: AW: AW: [HACKERS] Re: atttypmod of 0
Date: 1998-02-06 18:01:31
Message-ID: 199802061801.NAA15051@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> I guess I don't have a strong opinion on that. Since atttypmod is also
> intended for
> decimal and others, I think the default has to be type specific anyway,
> like 0 digits after the comma for decimal.
> I would prefer an atttypmod that does not include the VARHDRSZ for
> varchar though.
> Then it would simply be the max length (better for humans reading the
> system catalog).
> The default of zero would still be no problem I guess, since max zero
> length is still nonsense.

I indented to change it to -1 when we start using atttypmod for more
types that just char() and varchar().

--
Bruce Momjian
maillist(at)candle(dot)pha(dot)pa(dot)us

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Costin Oproiu 1998-02-06 18:57:59 Re: [HACKERS] Some performance issues (since everybody is testing ... :)
Previous Message Bruce Momjian 1998-02-06 18:00:12 Re: [HACKERS] Bug?