Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:Firebird is better (Score 1) 344

"Real Work"? What's that? MySQL was for a very long time the DB used by adsense and youtube...

Uh-huh. That's because if Youtube loses a video of a cat with 3 views, who gives a flying fuck? Ask your bank or your credit card company what database they use to store their financial transactions. Probably won't be PostgreSQL, but it sure as hell won't be MySQL. And they're only using Oracle because $10M to them is chump change.

Comment Re:Has the Documentation Been Improved? (Score 1) 344

The documentation just links to web pages

Eh? Not sure exactly what you mean, but the postgres documentation is built from SGML into several formats, such as a giant PDF or the web documentation. It's pretty darn good, and if you have quibbles with any of it, post to pgsql-docs and you'll have someone on the case pretty quickly.

Comment Re:Any way to bypass Bentonville? (Score 2, Informative) 278

Mod parent up. The Wal-Mart deal isn't actually that good, considering the offerings from Virgin Mobile, and Cricket. Not to mention Boost Mobile ($50 for unlimited everything, last I checked) and Metro PCS (similar unlimited pricing).

Personally, I keep my cell phone bill down around $10/month using prepaid minutes from T-Mobile. I've got an Android phone (G1, only $100 on eBay) and I can use sipdroid on it, combined with Google Voice and a free POTS->SIP accounts, for free minutes when I'm on wifi, which is most of the time.

Just stay the fuck away from AT&T and the other gorillas trying to lock you into overpriced 2-year plans and you'll do fine. Cell prices are finally coming down.

Comment Apropos article/book (Score 1) 617

We need to learn to better respect the blue collar jobs. Without people doing those jobs our world doesn't work, yet people are taught from a young age that doing blue-collar work is something you should work to avoid.

Just throwing a relevant article recommendation, based on a book which is also a good read: Matthew Crawford's The Case for Working With Your Hands, based on the book Shop Class as Soulcraft. There is a puzzling bias against any blue-collar work in this country, regardless of how challenging or well-paying it may be. Ever look at the hourly rate your plumber charges? Or how much fun it might be to, say, work on cars or motorcycles for a living as compared to banging out TPS Reports?

Comment Re:Whew (Score 4, Insightful) 601

Speak to your government about the enormous taxes they pile on top of that price.

I don't see why it' so terrible to pay gasoline taxes. We are dumping pollutants into the air with our cars, using the roads which our government funds, causing obnoxious noise and traffic jams...

I was just in Cuenca, Ecuador, where gas is $1.50 / gallon. The pollution from cars and buses in the city is unbearable: you can barely stand to walk around the city. Of course, hardly anyone walks anywhere, since a taxi anywhere within the city is a flat $2. The pollution is a real shame, since the city is situated in a picturesque valley tucked in the Andes mountains.

Comment Re:other then features... (Score 1) 213

but what if you have two clients get the MAX(pkey_column) at the same time? wouldn't they both be inserting the same key?

Yup. Look up SELECT ... FOR UPDATE for your database for the answer to your question, though again the real solution is just to use the appropriate sequence type provided by your RDBMS and let it do the work for you.

Comment Re:Still waiting (Score 1) 213

Imagine that you still have a single point of failure if your big expensive database server goes down.

Not true, if you set things up properly. Look up STONITH -- it's quite easy to quickly turn a slave into the new master if your master dies (so long as you are sure the master is dead, and you can decide which slave to promote!).

Comment Re:Still waiting (Score 2, Informative) 213

And those queries return incorrect results when they are behind the master. Pretty cool, huh?

Yup, that's the idea behind "asynchronous replication", and that's exactly how it's billed. If that's a deal-killer for you (for a large number of read-only queries it won't be.. think web applications where an eventually consistent state is perfectly fine) just wait until Postgres 9.1, when we should have more knobs for controlling master-slave replication. Then you should have the option to force the master to wait until a slave has received its WAL file update, and even fsync'ed it to disk, before your COMMIT returns, giving you the synchronous replication behavior you want.

The tradeoff with synchronous replication is increased latency on the master of course, since you're hanging around waiting for the slave to fsync (or just receive the data, depending on how you turn the knob). There have even been some proposals floating around for a "quorum commit" model whereby you would tell the master that you want your COMMIT; to go through when n out of m slaves have received the data.

Comment Re:Still waiting (Score 2, Informative) 213

Eh? When was multi-master replication ever promised in core? You're probably thinking about hot standby -- the Streaming Replication/Hot Standby code which is the "killer feature" of 9.0 was originally slated for 8.4, but didn't make it in time. I'm really surprised there aren't more comments about SR/HS, as it's an awesome feature which lets Postgres compete with the big boys like Oracle.

Imagine having your expensive database server be dedicated *only* to writes, and having all your read-only queries spread across one or more slave(s) which are also your backup servers. Pretty cool, huh?

Comment Re:other then features... (Score 3, Informative) 213

Some things they just don't *want* to implement on ideological reasons, like "UPDATE OR INSERT" or "CREATE IF NOT EXISTS" in PostgreSQL at least.

Definitely not true. There's a lot of support to implement the MERGE command from the SQL standard. It's been proposed a few times, but it's more difficult than it sounds to implement. From here:

And work on MERGE support is itself blocked behind the fact that PostgreSQL doesn't have a good way to lock access to a key value that doesn't exist yet--what other databases call key range locking. See the notes for "Add SQL-standard MERGE/REPLACE/UPSERT command" at http://wiki.postgresql.org/wiki/Todo for more information.

Your gripe about CREATE ... IF NOT EXISTS might hold water, depending on what exactly you're complaining about (CREATE TABLE? Or for indexes/constraints?). There does seem to be some resistance to CINE, though from what I can tell it's mostly because people would rather have CREATE OR REPLACE, but COR is much harder to implement (what do you do when the object already exists, but is slightly different than the one you're trying to create)?

Comment Re:other then features... (Score 4, Informative) 213

You're basically describing the SQL language itself (PostgreSQL does a good job of implementing most of the various SQL standards up to SQL-92 and even SQL-99). Of course, add-on procedural languages like Oracle's PL/SQL aren't going to be supported as-is anytime soon on PostgreSQL, or anywhere else. And of course, each database vendor has their own extensions to the SQL language itself, which other vendors aren't always keen to copy (think MySQL's INSERT ... ON DUPLICATE KEY UPDATE, or PostgreSQL's CLUSTER).

If you're designing a database application which you want to be easily portable across various SQL databases, just try to keep any non-standard-SQL use to a minimum and use of procedural languages simple and only when necessary. Books by Joe Celko stress this ideology, though my take is that it's just about impossible to really get the most out of your database unless you really make use of its extensions, which are there for a reason. For example, Celko discourages the use of auto-increment columns (serial type in Postgres, auto-increment primary key in MySQL), in favor of manually incrementing your sequence using MAX(pkey_column) or similar, which strikes me as absurd and non-scalable.

Image

California Legislature Declares "Cuss-Free" Week 262

shewfig writes "The California legislature, which previously tried to ban incandescent light bulbs, just added to the list of banned things ... swear words! Fortunately, the measure only applies for the first week of March, and compliance is voluntary — although, apparently, there will be a 'swear jar' in the Assembly and the Governor's mansion. No word yet on whether the Governator intends to comply."

Slashdot Top Deals

The following statement is not true. The previous statement is true.

Working...