Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMWoF-0004Iq-EH for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2019 11:56:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMWoD-0002W9-E6 for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2019 11:56:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMWoD-0002W1-4N for pgsql-general@lists.postgresql.org; Fri, 03 May 2019 11:56:57 +0000 Received: from smh-06.1blu.de ([178.254.0.206]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMWoA-0001dx-Hu for pgsql-general@postgresql.org; Fri, 03 May 2019 11:56:56 +0000 Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.86_2) (envelope-from ) id 1hMWo7-00037a-CG; Fri, 03 May 2019 13:56:51 +0200 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.86_2) (envelope-from ) id 1hMWo7-0000hm-A6; Fri, 03 May 2019 13:56:51 +0200 Date: Fri, 3 May 2019 13:56:51 +0200 From: Matthias Apitz To: pgsql-general@postgresql.org Subject: Migrating database(s) from Sybase ASE 15.7 to PostgreSQL 10.6 on Linux Message-ID: <20190503115651.GA22389@sh4-5.1blu.de> Reply-To: Matthias Apitz MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, We're investigating the migration of our LMS (Library Managment System) from Sybase ASE 15.7 to PostgreSQL 10.6. The used database in field have around 400 columns, some of them are also containing BLOB (bytea) data. The DB size vary upto 20 GByte. The interfaces contain any kind of language one could imagine :-) ESQL/C, JDBC, Perl DBD, ... Re/ the migration of the data itself, are there any use case studies which could we keep in mind? We plan to export the tables with our own tool which produces CSV with delimiter '|' (and \| if the char | is in char columns too) and with hex representation of the BLOB data. This seems to fit nicely with PostgreSQL's COPY command. Any known pitfalls? Btw: We're investigating MySQL too, but this seems to be from the list now for not having an ESQL/C interface. Regards matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub