TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Dribbble offline due to Postgres problem

100 点作者 ericras大约 12 年前

8 条评论

rosser大约 12 年前
This looks like disk page corruption.<p>In such a case, the <i>very first</i> thing you do — aside from verifying that your backups, replication, and WAL archiving are all working — before you even try diagnosing your problem any further than "something weird is happening" is <i>make a filesystem-level copy of your PostgreSQL cluster</i>. (If you're running LVM, ZFS, a SAN, or any other thing that lets you take an instantaneous filesystem snapshot, so much the better. Do that, and then copy <i>it</i>.) Then, and only then, should you even contemplate trying to un-fuck your database.<p>I cannot stress this point enough. That means make a tarball, or cp the directory, or rsync it, or whatever <i>disk file level</i> tool you prefer, and specifically and emphatically <i>not</i> pg_dump. (It's probably not going to make things any worse, but if you do have corrupted disk pages, pg_dump isn't likely work, anyway.)<p>Flailing around trying to fix things can sometimes make them worse. If you're working on your already broken data, and break it further without the safety net of a fs-level backup, you're ... well, you're worse off than you were five minutes prior, aren't you?
评论 #5712652 未加载
评论 #5712604 未加载
PhantomGremlin大约 12 年前
Since "dribbble.com" appears to be "taking a timeout for maintenance" I can't at a glance determine what, exactly, they do. So maybe they're a bunch of hobbyists. But if not ...<p>I don't understand how a "real" company, even in todays overheated environment of soon-to-fail hipster startups, doesn't do (at least) one of these two things: a) have competent employees on staff that are intimately familiar with their critical infrastructure and how to support it or b) pay, yes, gasp, pay some other company for professional <i>support</i> services. A glance at the Wikipedia entry for Postgres shows some possible companies that do that. Or, as already mentioned, there are mailing lists.<p>But twitter? Really? That's support? For someone other than a hobbyist running a website in their spare time?<p>Go ahead, flame me. But my first impression is "amateur hour". My apologies if dribbble.com really is an amateur effort.
评论 #5710895 未加载
评论 #5710711 未加载
评论 #5710747 未加载
评论 #5712179 未加载
joevandyk大约 12 年前
Everyone should be running pg_basebackup + pg_receivexlog on a separate machine, preferably at a different data center.<p>These let you go back to any point in time. If you ran 'delete from orders where id=id', you can restore to the transaction before you ran that command.<p><a href="http://www.packtpub.com/how-to-postgresql-backup-and-restore/book" rel="nofollow">http://www.packtpub.com/how-to-postgresql-backup-and-restore...</a> contains more information.<p>Also, postgresql 9.3 (out in a few months) supports disk page checksums which can detect filesystem failures immediately.
评论 #5710300 未加载
parfe大约 12 年前
The error in question is raised at <a href="http://doxygen.postgresql.org/sequence_8c_source.html#l01083" rel="nofollow">http://doxygen.postgresql.org/sequence_8c_source.html#l01083</a><p>My <i>guess</i> is hard drive failure. Hope they have good backups.
评论 #5710161 未加载
sickpig大约 12 年前
Did they try to post about their problem on postgresql mailing list (both pgsql bugs and general apply here)?<p>Postgres community is quite responsive and usually give very effective advice, as long as you use the proper channel to communicate.
评论 #5710773 未加载
bifrost大约 12 年前
I feel for you guys, but it sounds like a disk error. If you're not experts, you need to do one of the following A) rollback to a snapshot B) restore from backup. If you have neither of those, take a sql backup, and pray you can recreate the broken data.
taitems大约 12 年前
Might as well comment here as tweets to the account seem to do nothing. Every 25th click or so has always resulted in a Chrome "no content" error. It's a frequent problem, and it's been happening for years.
评论 #5710236 未加载
评论 #5710437 未加载
19_ploT大约 12 年前
It's back but I think one day of data is lost!