Home > Archive > PostgreSQL Administration > October 2006 > Sql Anywhere to PostgreSQL?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Sql Anywhere to PostgreSQL?
Chris Hoover

2006-10-25, 8:24 am

Has anyone ever done a conversion from Sql Anywhere to PostgreSQL? I have a
task to investigate what this would take.

Also, the Sql Anywhere database stores image files in the database as long
binary types. What would be the best format to store these in PostgreSQL?

Also, while all of my current PG clusters are on RH linux, if this project
went forward, it would have to run on Windows 2k. Will the windows version
of PG run on 2k, and are there any special caviates running on this
platform?

Thanks,

Chris

PG 8.1.3
RH 4.0 AS

Shane Ambler

2006-10-25, 8:24 am

Chris Hoover wrote:
> Has anyone ever done a conversion from Sql Anywhere to PostgreSQL? I
> have a
> task to investigate what this would take.
>
> Also, the Sql Anywhere database stores image files in the database as long
> binary types. What would be the best format to store these in PostgreSQL?


That would be bytea or blob depending on your exact needs.

> Also, while all of my current PG clusters are on RH linux, if this project
> went forward, it would have to run on Windows 2k. Will the windows version
> of PG run on 2k, and are there any special caviates running on this
> platform?


PostgreSQL 8.0 and above runs on windows and is available in a
pre-configured windows installer package to install like other software.

The main catch is the windows version is somewhat newer and less tested
than the *nix versions. (previous versions on windows where the *nix
source built on top of cygwin)


--

Shane Ambler
pgSQL@007Marketing.com

Get Sheeky @ http://Sheeky.Biz

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

ljb

2006-10-26, 12:16 am

> Has anyone ever done a conversion from Sql Anywhere to PostgreSQL? I have a
> task to investigate what this would take.


Biggest problem areas I see would be stored procedures and the many SQL
differences. If you use stored procedures, they will need to be completely
rewritten. The SQL differences will get you too; someone who knows both
SQLA and PostgreSQL will have to review line-by-line. Stuff like SQLA's
"current timestamp" vs PostgreSQL "current_timestamp". Or, limiting returned
rows (SQLA: SELECT TOP 10 * FROM ... vs PostgreSQL: SELECT * FROM ... LIMIT
10). Just two examples. Where standards exist, PostgreSQL is much more
standard than Sybase.
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com