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

Re: Oracle -> PostgreSQL ==> RAW -> ???

From: Joe Conway <joseph(dot)conway(at)home(dot)com>
To: Ezra Epstein <akee(at)speakeasy(dot)net>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Oracle -> PostgreSQL ==> RAW -> ???
Date: 2001-11-21 17:12:13
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
Ezra Epstein wrote:

 > Hi,
 > I'm moving a database from Oracle to PostgreSQL.  I use RAW (as in
 > BINARY, as in BYTE(x) where x < 20) for quite a few columns that
 > hold application generated keys, etc.
 > How do I represent a RAW in PostgreSQL.  I'm too much of a newbie to
 >  know how to create my own type.  BIT seems to be wrong.  And BYTEA
 >  can't be it either as there are all sorts of restrictions on using
 >  BYTEAs for keys. Seems OIDs are for BLOBs and this are not large
 > binary objects...
 > HELP!!!  Answers, pointers, tips, doc refs, anything.

Most of the BYTEA restrictions are gone in 7.2 (about to go into 3rd 
beta release). Specifically, you can now create btree indexes on BYTEA 
columns. There's documentation too, in CVS and starting with beta3. Look 
for "Binary Strings" under the section on datatypes and functions.

Hope this helps,


In response to

pgsql-docs by date

Next:From: Bruce MomjianDate: 2001-11-21 21:25:08
Subject: Re: Documentation gap: Perl interfaces
Previous:From: Joe ConwayDate: 2001-11-21 17:04:41
Subject: Re: [PATCHES] PQescapeBytea documentation patch

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