| From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | scrappy(at)hub(dot)org (The Hermit Hacker) |
| Cc: | hackers(at)postgreSQL(dot)org |
| Subject: | Re: [HACKERS] varchar/char size |
| Date: | 1998-01-07 23:04:08 |
| Message-ID: | 199801072304.SAA07589@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
>
> On Wed, 7 Jan 1998, Bruce Momjian wrote:
>
> > In my experience, char() is full size as defined by create, and
> > varchar() is the the size of the actual data in the field, like text,
> > but with a pre-defined limit.
>
> Can you remind me what the difference is between text and varchar? Why
> would you use varchar over text?
Only because SQL people are used to varchar, and not text, and sometimes
people want to have a maximum size if they are displaying this data in a
form that is only of limited size.
--
Bruce Momjian
maillist(at)candle(dot)pha(dot)pa(dot)us
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 1998-01-08 03:03:22 | rollback varchar change |
| Previous Message | The Hermit Hacker | 1998-01-07 22:44:24 | Re: [HACKERS] varchar/char size |