pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vadivel Subramaniam <vadivel.subramaniam@flextronicssoftware.com>
To: pgsql-odbc@postgresql.org
Cc: Vadivel Subramaniam <vadivel.subramaniam@flextronicssoftware.com>
Subject: Support for 1GB of characters in Varchar datatype
Date: Mon, 6 Jun 2005 15:30:00 +0530
Message-ID: <OF52AC7E12.7E7DA9AB-ON65257018.0035CB22-65257018.0036EEB7@flextronicssoftware.com> (raw)





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-TA...

The above link says "varchar" can store upto 1 GB of data.  But when i try
to insert using ODBC API's the varchar field takes
only 65484 characters.    But i could insert more characters using INSERT
SQL command.  Even in this case when we fetch the data it reads only 65540
characters. Remaining data is not read from the varchar field.

Is there anything needs to be configured to make the varchar field to
support upto 1 GB.

Please send the details of how i can store upto 3 MB of character data in
the varchar field.

Postgres Version 7.4.2
Accessing using UnixODBC driver.

thanks,
Vadivel.

***********************  FSS-Private   ***********************
"DISCLAIMER: This message is proprietary to Flextronics Software Systems
Limited (FSS) and is intended solely for the use of the
individual to whom it is addressed. It may contain  privileged or
confidential information and should not be circulated or used for
any purpose other than for what it is intended. If you have received this
message in  error, please notify the originator immediately.
If you are not the intended recipient, you are notified that you are
strictly  prohibited  from  using, copying, altering, or disclosing
the contents of this message.  FSS  accepts no  responsibility  for loss or
damage arising from the use of  the information transmitted
by this email including damage from virus."




Message-ID: <OF52AC7E12.7E7DA9AB-ON65257018.0035CB22-65257018.0036EEB7@flextronicssoftware.com>
Permalink:  ../OF52AC7E12.7E7DA9AB-ON65257018.0035CB22-65257018.0036EEB7@flextronicssoftware.com/
Also on:    postgresql.org/message-id/OF52AC7E12.7E7DA9AB-ON65257018.0035CB22-65257018.0036EEB7@flextronicssoftware.com

 · 

reply

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-odbc@postgresql.org
  Cc: vadivel.subramaniam@flextronicssoftware.com
  Subject: Re: Support for 1GB of characters in Varchar datatype
  In-Reply-To: <OF52AC7E12.7E7DA9AB-ON65257018.0035CB22-65257018.0036EEB7@flextronicssoftware.com>
  References: <OF52AC7E12.7E7DA9AB-ON65257018.0035CB22-65257018.0036EEB7@flextronicssoftware.com>

* 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