Can we create a column of character varying(MAX) with PostgreSQL database Can we create a column of character varying(MAX) with PostgreSQL database postgresql postgresql

Can we create a column of character varying(MAX) with PostgreSQL database


If you want to created an "unbounded" varchar column just use varchar without a length restriction.

From the manual:

If character varying is used without length specifier, the type accepts strings of any size

So you can use:

create table foo(   unlimited  varchar);

Another alternative is to use text:

create table foo(   unlimited text);

More details about character data types are in the manual:
http://www.postgresql.org/docs/current/static/datatype-character.html