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 1hMYN1-0000UK-Ln for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2019 13:36: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 1hMYN0-0002wA-9e for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2019 13:36:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMYMz-0002w3-Sc for pgsql-general@lists.postgresql.org; Fri, 03 May 2019 13:36:58 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMYMw-0002co-Kr for pgsql-general@postgresql.org; Fri, 03 May 2019 13:36:56 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 572B722381; Fri, 3 May 2019 09:36:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 03 May 2019 09:36:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=V Vbltjxgc/6gxvHHw+98HnSnQSjJr5Y3KW2T3O+M3Po=; b=Q9+GIl/WpsXRZf+Tg PtJ87knPk4S/3f9DmlfX7MFPgiMTYxSyYrJeWo8JmT3GAePPKcGbyjflVhOz4f77 xwxRATqIqRxtVyj7Gf0ZuT0Xidk/gSpHCWj+9G5D7HNbyRQf2+GMVa8+zfsQvJVx kiDeKHd/JEyKplCnW2vyf6CKeZrSk+ErC9hfyyUAije0cjdNMbCy63EMvR2z3Hqi /aRqiZbrz6ObABiCQDSXVXxZ4+LjY4H3r/2Sse6BjTGY/n9LnWE11szDCfkfmui6 padeuvg9PoCO3oFv3bpTdEaMQBovn98pnpdoLOhYAnRiqmAqNe3zJyKo36KoT21Z t9Fjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=VVbltjxgc/6gxvHHw+98HnSnQSjJr5Y3KW2T3O+M3 Po=; b=AMwUqWoaebF0K9EZIqBJbbOX6hn0mlRgxI5vn8Fo6MSPfNK+6oCJZjxjP kezZnN5zRpk471MWioqz8G1HlAsVbxQymaoCBVbJtMQud8RH5XUaIcooADPp9bq3 OUCYv373/WqFNgeQB/xRPT7EV7wMlsyyhgXhMASFWD3FfnSLShHdMLpU808nVH/S c1EmbsvKEIxddRVQqIkb/7KXPowlnWSh+hty0xJ2HzViRKeytqwHTcqIdor0F/04 HDdCdyEBesPjUYseIo/aEmmkKYA2Bl5poc6gPRW/TotwLKPhnLpH5rV/ITR3Y4RH 8f95YRJmwAJg9woukuQZipg7wceXw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjedugdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepghhithhhuhgsrdgtoh hmnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 1AA93E4625; Fri, 3 May 2019 09:36:52 -0400 (EDT) Subject: Re: Migrating database(s) from Sybase ASE 15.7 to PostgreSQL 10.6 on Linux To: Matthias Apitz , pgsql-general@postgresql.org References: <20190503115651.GA22389@sh4-5.1blu.de> From: Adrian Klaver Message-ID: Date: Fri, 3 May 2019 06:36:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190503115651.GA22389@sh4-5.1blu.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/3/19 4:56 AM, Matthias Apitz wrote: > > 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. You might want to also take a look at: A PostgreSQL foreign data wrapper to connect to TDS databases (Sybase and Microsoft SQL Server) https://github.com/tds-fdw/tds_fdw > > 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 > -- Adrian Klaver adrian.klaver@aklaver.com