Re: 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: [HACKERS] Re: atttypmod of 0
Date: 1998-02-06 16:47:42
Message-ID: 199802061647.LAA11003@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Yes, I think to change atttypmod to default to -1 would be the right
> thing,
> since the empty string '' really has a length of 0,
> We could think of -1 as: We don't know how long this field will be.
> 0 would mean the field has 0 bytes.

Field has varlena == 4, so zero is not possible, but I could still
change to -1 for clarity.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom I Helbekkmo 1998-02-06 16:55:57 Re: [HACKERS] Bug?
Previous Message Zeugswetter Andreas DBT 1998-02-06 16:31:26 Re: what standard say ...