Recent submissions

Comment · 9 years ago
While admittedly this could be seen as a mistake in SQL, you can differentiate by looking at whether b.id is NULL or not.
Comment · 9 years ago
That's a "cure" worse than the disease.
Comment · 9 years ago
What kind of official support?
Comment · 9 years ago
Tough.
Comment · 9 years ago
The same way the new built-in logical replication works: logical decoding.
Comment · 9 years ago
Really hasn't been in years. I've not even heard of anyone using it in over a year. But I mostly speak with people who stream video games.
Comment · 9 years ago
> One kind of significant downside of partial indexes in PostgreSQL is that they don't work with parameters.

Your example is fundamentally different from parameters sent by a client in a parameterized query, i.e. $1, $2, etc. Also while your flawed example will never use a partial index, parameterized queries can and often will do that. With prepared statements (which are a slightly different concept from parameterized queries) the devil will lie in the details, but even those don't really prevent partial indexes from being used since postgres version 9.2, released years ago.

Comment · 9 years ago
Comment · 9 years ago
> They maintained a replication process across both tables as they updated the read processes before updating the write process. Say for whatever reason their offline replication process broke for 2 hours.

From the article I got the impression that both tables were being written to in the same database transaction, so this is not a possible failure scenario at all.

Comment · 10 years ago
This kind of nannying can be really expensive to do correctly when trying to build high performance systems -- to the point where it doesn't make sense to punish everyone just because someone who didn't read the manual MIGHT misuse the product. It's not at all unreasonable to mix transactions with different guarantees if they never touch the same data, and tracking that accurately enough without pissing off your customers with performance needs seems like a fool's errand.
Comment · 10 years ago
Hmm.. So was there a workflow where I could say "I'd like for this not to be pushed until I've approved it", even if the patch is assigned to be reviewed by someone else? Of course, I could just comment with that on the issue, but it would be nicer if the issue would pop up somehow after the other reviewer has reviewed it, and it would be obvious to everyone that it's waiting for my approval.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton