Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 63965 invoked from network); 14 Oct 2003 03:59:18 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Oct 2003 03:59:18 -0000 Received: (qmail 89866 invoked by uid 500); 14 Oct 2003 03:58:57 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 89850 invoked by uid 500); 14 Oct 2003 03:58:56 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 89835 invoked from network); 14 Oct 2003 03:58:56 -0000 Received: from unknown (HELO mail.iinet.net.au) (203.59.3.42) by daedalus.apache.org with SMTP; 14 Oct 2003 03:58:56 -0000 Received: (qmail 8347 invoked from network); 14 Oct 2003 03:55:52 -0000 Received: from unknown (HELO backstagetech.com.au) (203.217.17.173) by mail.iinet.net.au with SMTP; 14 Oct 2003 03:55:51 -0000 Message-ID: <3F8B73B8.9060002@backstagetech.com.au> Date: Tue, 14 Oct 2003 13:55:36 +1000 From: Scott Eade User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4.1) Gecko/20031008 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Torque Developers List Subject: PostegreSQL datatype mapping for LONGVARCHAR - bytea vs text Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Is there a reason why LONGVARCHAR maps to "bytea" rahter than "text" for PostgreSQL? I am in the process of converting an application over from MySQL to PostgreSQL and am finding that my application experiences a couple of problems storing data into the columns defined as bytea (usually it just hangs). I am attempting to make my application as database neutral as possible (beween MySQL and PostgreSQL that is), and I am thus thinking that the PostgreSQL text type would be a better mapping for LONGVARCHAR. So should the PostgreSQL mapping for LONGVARCHAR be updated to be "text" or should I switch to CLOB (which uses "text" for PostgreSQL and "LONGTEXT" for MySQL)? Is anyone using a column type that maps to bytea under PostgreSQL successfully? This includes: LONGVARCHAR, BINARY, VARBINARY and LONGVARBINARY. The mapping for LONGVARCHAR looks wrong to my eyes - I'll change it to "text" locally and see how things go. Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org