Re: [SQL] how to store more than 3 MB of character data in Postgres Varchar field

2005-06-06 Thread Tom Lane
Vadivel Subramaniam <[EMAIL PROTECTED]> writes: > 2. create table utilntmlscripts (name character varying, data character > varying(10485770)); > ERROR: length for type 'varchar' cannot exceed 10485760 > It's not allowing more than 10 MB of size during table creation. Use type "text",

Re: [SQL] how to store more than 3 MB of character data in Postgres

2005-06-06 Thread Richard Huxton
Vadivel Subramaniam wrote: I assume, it could not be a problem with ODBC. I am able to store 2.5 MB of data into Oracle using the same ODBC APIs. Well, it certainly isn't to do with PG itself: $ cat bigtest.pl #!/usr/bin/perl print "CREATE TABLE foo (a int, b varchar);\n"; print "INSERT INTO

Re: [SQL] how to store more than 3 MB of character data in Postgres

2005-06-06 Thread Richard Huxton
Vadivel Subramaniam wrote: Hi, We have a requirement wherein we have to store around 3 MB of data in Postgres database. We had gone through the postgres website http://www.postgresql.org/docs/7.4/interactive/datatype-character.html#DATATYPE-CHARACTER-SPECIAL-TABLE The above link says "varc

[SQL] how to store more than 3 MB of character data in Postgres Varchar field

2005-06-06 Thread Vadivel Subramaniam
Hi, We have a requirement wherein we have to store around 3 MB of data in Postgres database. We had gone through the postgres website http://www.postgresql.org/docs/7.4/interactive/datatype-character.html#DATATYPE-CHARACTER-SPECIAL-TABLE The above link says "varchar" can store upto 1 GB of