Skip site navigation (1) Skip section navigation (2)

Re: Datatype for MySQL Varbinary

From: Kenneth Marshall <ktm(at)rice(dot)edu>
To: "Bill P(dot)" <maxarbos(at)yahoo(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Datatype for MySQL Varbinary
Date: 2010-12-14 21:45:17
Message-ID: 20101214214517.GJ10252@aart.is.rice.edu (view raw or flat)
Thread:
Lists: pgsql-novice
On Tue, Dec 14, 2010 at 01:25:16PM -0800, Bill P. wrote:
> Hello,
> 
> I am in the process of migrating a mysql db to a postgresql one and there are a 
> few tables with columns with datatypes of 'Varbinary'
> These columns store the AES_ENCRYPTed output of a value. 
> 
> What datatype should I set the postgresql table.column to for this to be stored 
> properly?  
> 
> 
> I cannot decrypt the data and re-encrypt it into postgres, so the format and 
> content need to remain the same on migration.
> 
> Thank you.
> 

BYTEA:

http://www.postgresql.org/docs/9.0/static/datatype-binary.html

Cheers,
Ken

In response to

pgsql-novice by date

Next:From: JORGE MALDONADODate: 2010-12-14 23:07:33
Subject: Getting tables from one DB to another
Previous:From: Bill P.Date: 2010-12-14 21:25:16
Subject: Datatype for MySQL Varbinary

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group