From: Martin Marques <martin@bugs.unl.edu.ar>
To: B. van Ouwerkerk <bvo@atz.nl>
To: pgsql-general@postgresql.org
Subject: Re: Is my MySQL Gaining ?
Date: Mon, 29 Dec 2003 20:52:52 -0300
Message-ID: <200312292052.52706.martin@bugs.unl.edu.ar> (raw)
In-Reply-To: <6.0.0.22.0.20031229234533.0661a300@pop.atz.nl>
References: <Pine.LNX.4.44.0312271122130.20117-100000@brahma.wcg.mcgill.ca>
<1072737215.3ff0abbf9fcc2@webmail.vcsn.com>
<6.0.0.22.0.20031229234533.0661a300@pop.atz.nl>
El Lun 29 Dic 2003 20:24, B. van Ouwerkerk escribió:
>
> > > Another example? alright, data types. I found a very helpful list at the
> > > website but I didn't see the limitations per type (maximum lenght like
> > > MySQL says varchar max 255), or is it hidden somewhere on the PG
website?.
I can recall that Informix had a maximun of 255 characters in the varchar,
which was documented, but if I created a table with varchar(350) it would
silently default to 255. Very nasty. :-(
> >??? That is right in the Data Types chapter...
> >
> >http://www.postgresql.org/docs/7.4/static/datatype.html
>
> I still don't find it. I know you can do a varchar(255) but what is the
> maximum PG will allow? Is there a maximum?
> In short, how much can I put into the field before it breaks.
As it says in
http://www.postgresql.org/docs/7.4/static/datatype-character.html:
SQL defines two primary character types: character varying(n) and
character(n), where n is a positive integer. Both of these types can store
strings up to n characters in length.
Does it say that there is a limit? Yes surely there is one, which most likely
will depends on the Processor and OS you are running (64 bit or 32 bit), but
anyway, such log varchars wouldn't be that recommended, and maybe the TEXT
data type would be more suitable.
> But perhaps I should keep my mouth shut until I have been reading a good
> book ;-) still think it should be in the docs though.
You should! :-)
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-----------------------------------------------------------------
Martín Marqués | mmarques@unl.edu.ar
Programador, Administrador, DBA | Centro de Telemática
Universidad Nacional
del Litoral
-----------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: martin@bugs.unl.edu.ar, bvo@atz.nl
Subject: Re: Is my MySQL Gaining ?
In-Reply-To: <200312292052.52706.martin@bugs.unl.edu.ar>
References: <Pine.LNX.4.44.0312271122130.20117-100000@brahma.wcg.mcgill.ca> <1072737215.3ff0abbf9fcc2@webmail.vcsn.com> <6.0.0.22.0.20031229234533.0661a300@pop.atz.nl> <200312292052.52706.martin@bugs.unl.edu.ar>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox