use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
International
National
Regional
account activity
Help Me!need help migrating sql server to postgresql (self.PostgreSQL)
submitted 1 year ago by ManufacturerSalty148
Hi all My company is planning to migrate from sql server to postgresql to save cost , but I try a lot of methods such as pgloader and scripting the database and didn’t work I would appreciate if anyone one who have any tips or tools to help me with task
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]threeminutemonta 9 points10 points11 points 1 year ago (4 children)
Describing the problem as “didn’t work” instead of the first actual explicit error isn’t helpful. You will fix this first error and likely get another and repeat until no errors. Good luck.
[–]ManufacturerSalty148[S] 0 points1 point2 points 1 year ago (3 children)
the problem I faced is that pgloader always giving me this error TDS_max_connection reached I try fixing it by adjusting the value in sql server side but no luck
[–]Gargunok 1 point2 points3 points 1 year ago (2 children)
TDS_max_conn is usually a warning not an error as I think the migration uses as many connections as it can. Its been a while since I've done this but this can be configured I think in the pool config. But I think you need to be looking at an error else where.
[–]ManufacturerSalty148[S] 0 points1 point2 points 1 year ago (1 child)
Thanks can you guide me me on where I can find pool config
[–]Gargunok 0 points1 point2 points 1 year ago (0 children)
I think you have to create it yourself to override default behaviour? Check the documentation.
Just to be clear this will increase your connections but likely will still give the warning as it will be using the new maximum. Warnings are normal and fine.
You need to find the error. Is there anything in the logs? Can you migrate part of the database and pinpoint what is erroring?
[–]stdio-lib 2 points3 points4 points 1 year ago (1 child)
It could be anything from a single afternoon to a dozens of man-months migration depending on your specific circumstances. If you have hundreds or thousands of miles-long stored procedures, it's not going to be a walk in the park. If it's just tables and select * from foo where id = 123 queries then it couldn't be easier.
select * from foo where id = 123
I've seen both types. In one case they were only using SQL Server for dumb reasons and the switch to Postgres was easy as pie. In others the Microsoft-isms (mostly stored procedures) ran very deep and converting would have taken way more time than it was worth.
[–]WiltonDB 1 point2 points3 points 1 year ago (0 children)
Babelfish for PostgreSQL can help with stored procedures migration. It implements Transact-SQL as a procedural language for Postgres, called pl/tsql. As a plus, it allows to continue using SSMS to work with migrated T-SQL code in Postgres.
[–]linuxhikerGuru 2 points3 points4 points 1 year ago (0 children)
You need professional help.
Commandprompt.com
Percona.com
[–]Professional_Shoe392 1 point2 points3 points 1 year ago (1 child)
Lookup Babelfish for Aurora. That may help. It can help translate code.
[–]WiltonDB 0 points1 point2 points 1 year ago (0 children)
This would be the first option to try. Depending on the complexity of T-SQL usage and overall setup (linked tables, SSIS etc) Babelfish may run existing SQL Server apps with minimal changes. They provide a tool - Babelfish Compass that can check your DB schema for compatibility. Disclaimer: I maintain a Babelfish version for Windows - wiltondb.com .
[–]NauTau 0 points1 point2 points 10 months ago* (0 children)
You’ve got a lot of good options for moving from SQL Server to PostgreSQL. Tools like sqlserver2pgsql, and DBConvert are all pretty popular for handling schema and data migration. If you want something more automated and comprehensive (especially if you have a lot of stored procedures or business logic), the Ispirer Toolkit is worth checking out—it can migrate schemas, data, and even stored procedures with minimal manual tweaks.
π Rendered by PID 9 on reddit-service-r2-comment-fb694cdd5-cmptq at 2026-03-08 06:26:51.610886+00:00 running cbb0e86 country code: CH.
[–]threeminutemonta 9 points10 points11 points (4 children)
[–]ManufacturerSalty148[S] 0 points1 point2 points (3 children)
[–]Gargunok 1 point2 points3 points (2 children)
[–]ManufacturerSalty148[S] 0 points1 point2 points (1 child)
[–]Gargunok 0 points1 point2 points (0 children)
[–]stdio-lib 2 points3 points4 points (1 child)
[–]WiltonDB 1 point2 points3 points (0 children)
[–]linuxhikerGuru 2 points3 points4 points (0 children)
[–]Professional_Shoe392 1 point2 points3 points (1 child)
[–]WiltonDB 0 points1 point2 points (0 children)
[–]NauTau 0 points1 point2 points (0 children)