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.

Postgression - A PostgreSQL database for every test case

65 pointsby willlllover 12 years ago

8 comments

rdeggesover 12 years ago
Hey all, so I'm one of the authors of postgression. The website isn't totally clear as to all the reasons why this may be useful. I've written a blog post about it, which you may also find helpful if you're interested:<p><a href="http://rdegges.com/postgression-a-postgresql-database-for-every" rel="nofollow">http://rdegges.com/postgression-a-postgresql-database-for-ev...</a>
评论 #5095561 未加载
评论 #5095752 未加载
Titanousover 12 years ago
I'm not convinced that the cumulative latency this would introduce into test runs is lower than the amount of time required to use brew or apt-get to install Postgres.
评论 #5095028 未加载
评论 #5094659 未加载
pvhover 12 years ago
You know what would make this faster? If you ran your tests inside Heroku as well. Then you wouldn't have all the network round-trip time and you'd be test in the same environment you go to production on.
olefooover 12 years ago
This may be a small nit, especially since this is specifically a public test facility. But you might want to restrict the guest roles to only access their own database public schema.<p>I can't see other's query activity, but I can see some of the pg_catalog tables.<p>For instance<p><pre><code> select count(*) from pg_stat_database; count ------- 1900 (1 row)</code></pre>
评论 #5095035 未加载
评论 #5095036 未加载
meatyover 12 years ago
Not sure I'd want to throw my schema out of our infrastructure.<p>At the moment, our integration test run takes nearly two hours but this is rolling out the schema and the sheer number of test cases (we have over 1 million lines of test cases). Something that speeds it up would be welcome but this is not for us.
评论 #5096448 未加载
benatkinover 12 years ago
This is inefficient on multiple levels. Please check out Vagrant.
评论 #5095008 未加载
phusukeover 12 years ago
Good job guys! This is pretty cool!
dmisheover 12 years ago
Interesting, but still this is connecting to outside server. For mac there's Postgres.app
评论 #5095019 未加载