TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pgloader – migrate your data from any SQL database into PostgreSQL

127 pointsby humilityover 5 years ago

6 comments

dfsegoatover 5 years ago
We&#x27;ve been using pgloader as part of our production workflows between RDBMS&#x27; for about a year now. Overall I am super impressed with the speed and reliability of it.<p>Some gotchas:<p>- MySQL to Postgres needs some massaging for int-types. Pgloader will convert MySQL bigint to type &quot;numeric&quot; by default - which is a bit of overkill.<p>- For issues like the above, they have a handy syntax for the pgloader template files which lets you do datatype casts on the fly. [1]<p>1 - <a href="https:&#x2F;&#x2F;pgloader.readthedocs.io&#x2F;en&#x2F;latest&#x2F;ref&#x2F;mysql.html#mysql-database-casting-rules" rel="nofollow">https:&#x2F;&#x2F;pgloader.readthedocs.io&#x2F;en&#x2F;latest&#x2F;ref&#x2F;mysql.html#mys...</a>
评论 #21631633 未加载
lukastr0over 5 years ago
Pgloader is a great project, and I planned to use it for database migration of a small commercial product (from SQL Server).<p>Unfortunately, I never go it to work. Tried three different distros (Ubuntu &#x2F; Debian &#x2F; Amazon Linux). Sometimes installation would fail, other times it would crash on first run - even when following instructions to the letter.<p>When I finally got it to run, it could not connect to SQL Server, and no one on Github could help with my particular error message.<p>Ended up writing the migration code myself, which took only a few hours. The lesson: for a very simple migration, pgloader was actually overkill and a self-made solution did the job quicker.
jjiceover 5 years ago
I&#x27;ve noticed recently that Postgres is really gaining in popularity, especially as a MySQL alternative. Why is that? Is it because of Oracle&#x27;s involvement in MySQL or has Postgres really improved in performance?
评论 #21632697 未加载
评论 #21632710 未加载
评论 #21632507 未加载
评论 #21640359 未加载
评论 #21632659 未加载
poweredbylispover 5 years ago
Nice to see that it&#x27;s<p><pre><code> Common Lisp 96.7% Makefile 1.9% Other 1.4%</code></pre>
aidenn0over 5 years ago
For those interested in learning more about PostreSQL, I&#x27;d recommend the book by the author of this tool[1]. It&#x27;s bee a great resource for me. It&#x27;s a great introduction to SQL with a focus on postgres.<p>(FWIW, it was called &quot;Mastering PostgreSQL&quot; when I bought it, but as far as I can tell, the site I linked is just an updated version).<p>1: <a href="https:&#x2F;&#x2F;theartofpostgresql.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;theartofpostgresql.com&#x2F;</a>
ilikepiover 5 years ago
The author of this tool also appears to maintain a website[1] with information about migrating from MySQL to Postgres.<p>[1]: <a href="http:&#x2F;&#x2F;mysqltopgsql.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;mysqltopgsql.com&#x2F;</a>