Re: question about meaning of character varying without length

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Konstantin Izmailov <pgfizm(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: question about meaning of character varying without length
Date: 2009-06-16 04:29:52
Message-ID: 603c8f070906152129n243aaaf3x2466fff6efd22413@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 16, 2009 at 12:24 AM, Konstantin Izmailov<pgfizm(at)gmail(dot)com> wrote:
> Hello,
> I've found following description: "If character varying is used without
> length specifier, the type accepts strings of any size. The latter is a
> PostgreSQL extension."
>
> Does this mean that "character varying without length" is equivalent to
> "text" type. Are there any differences?
>
> I noticed that ODBC driver processes the type differently from "text".
>
> Please help!
> Konstantin

This question would be more appropriate for pgsql-general or maybe
pgsql-odbc, since it is not a question about the development of
PostgreSQL.

character varying and text are different types, but there's no real
difference between them. I can't speak to what the ODBC driver does.

...Robert

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-06-16 04:31:56 Re: How to embed postgresql?
Previous Message Robert Haas 2009-06-16 04:24:46 Re: [PATCH] backend: compare word-at-a-time in bcTruelen