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.
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
You should use TEXT
data type for this use-case IMO.