PostgreSQL 8.2 Released
An anonymous reader writes to let us know that PostgreSQL 8.2 has been released (bits, release notes). 8.2 is positioned as a performance release. PostgreSQL it is still missing the SQL:2003 Window Functions that are critical in business reporting, so Oracle and DB2 will still win out for OLAP/data warehouse applications.
I should know better than expect correctness in AS, but come on...
"Piter, too, is dead."
Sure would be nice to get bitmap indexes one of these days
God Fucking Damnit
Their program-level code calculates the "sliding window" of rows, and creates the correct "where" clause of the query. AND THAT'S THE WAY THEY LIKE IT. Real Men are not concerned with finding new and "innovative" ( in the Bill Gates sense) excuses to take functionality out of the programming level and into the DB level, because Real Men can program both as necessary.
The monetary savings of writing your own sliding windows code, instead of paying Oracle's licenses, are to be spent on BOOZE and HOOKERS.
PostgreSQL it is still missing.
Do you even lift?
These aren't the 'roids you're looking for.
MySQL has been the dominant SQL server within the open source community. Between its non-standard SQL and it's lack of advanced features, many developers and DBAs are getting fed up. Thankfully, they've been able to turn to PostgreSQL.
At my firm, we switched some of our MySQL Enterprise databases over to PostgreSQL 8.1. What we found was pretty amazing: PostgreSQL outperformed MySQL by approximately 23% in terms of the number of queries it could handle per second. And this was with a very basic level of tuning! Our MySQL installations, on the other hand, had been tuned by three different consultants. Keep in mind that both were running on exactly the same system, under the same installation of FreeBSD. Were not sure exactly why there was such a remarkable increase in performance when using PostgreSQL, even without much tuning, but we're happy with it nonetheless. We're also happy to no longer being paying MySQL for support.
We're actually quite happy to get away from MySQL. The other developers I work with were quite sickened by the deal MySQL AB reached with SCO a while back. While we're strictly a BSD shop, we still think SCO's actions are quite distasteful, and we are willing to move away from companies that enter into deals with them.
So how does this release compare with MySQL 3.23? Because my webhost is still using it, and I need to be able to argue that PostgreSQL 8.2 is infinitely better than MySQL 3.23 for them to provide this also.
How fast is it against MyISAM? (MySQL's main selling point for a lot of people)
I'm a fan of PG, but your post sounds like you're just trash-talking MySQL. (Don't get me wrong, MySQL is a joke for sure.) I'm also doubting the 23% increase in performance, but I haven't made any comparisons personally.
PostgreSQL it is still missing the SQL:2003 Window Functions that are critical in business reporting, so Oracle and DB2 will still win out for OLAP/data warehouse applications.
Bullshit, pure and simple. This is nothing more than marketing-speak and you should be ashamed.
I'm not saying that SQL-2003 Window Functions are useless, I'm saying your statement about them being "critical" in business reporting is bullshit. Did no one do business reporting before this standard came out? What the hell did people do in 2002? Are all those MS-SQL Server 2000 and Oracle 8i servers going to fall down in shame? I think not.
I see these comments all the time, usually in marketing brochures from a software vendor touting a new feature. They make it sound like all other products are steaming piles of shit if they don't have whiz-bang-feature #16. They like avoiding any conversation that goes "But, I've been using your product and it works great. Are you telling me your product (last rev) is a steaming pile of shit? That implies if I upgrade, next year you're going to be telling me how THIS rev you are so loudly praising is also a steaming pile of shit."
Charles (had enough marketing-speak for this year)
Learning HOW to think is more important than learning WHAT to think.
What do PostgreSQL users do for replication? I'm a MySQL admin who would really like to be able to switch to PostgreSQL, but we need to be able to have several slaves hanging off a master, and have everything replicated in as real-time as possible (but asynchronously) to the slaves. I have spent some time looking for how to do this in PostgreSQL but have found each solution lacking. The "most popular free" one, according to the PostgreSQL faq, is "Slony-I", but from what I could find it doesn't replicate schema changes to the slaves. What happens to your replication when the slaves sees an update to a column/table that doesn't exist on the slave? Slony also doesn't replicate "large objects"; I don't know what they are, but as a MySQL admin who has been replicating our databases for many years, I have a hard time imagining adjusting to limitations like these.
Most of the other options I found were abandonware, undocumented, didn't work with PostgreSQL 8.x, etc. I looked at commercial solutions, but they were similarly a mess. Specifically, here is my survey:
* pgpool -- Max 2 servers, and they're not really in sync---commands like now() or rand() will be executed independently on the mirrored machines, causing them to have different data.
* Slony I -- DB schema changes not replicated, nor are "large objects"
* PGCluster -- Synchronous multi-master. We don't want synchronous, and don't need multi-master. Documentation patchy, didn't appear to be currently maintained.
* CommandPrompt "Mammoth" -- Documentation "in the works". PostgreSQL 8.0.7. Tables can't use "inheritance". Schema changes not replicated (at least not table creation, not sure about the rest). Only 1 db replicated, not all dbs. Tables must have primary keys. Have to list tables in config file.
* Bizgres/GreenPlum -- Buzzword-compliant website, but website was broken when I looked for details. The "Community" is inactive---forum is barely used, questions are unanswered.
* PostgrSQL Replicator -- Poorly documented. Only mentions up to 7.x. "News" is from 2001.
I'm not ragging on PostgreSQL: I'd really like to be able to migrate to it. I just fear that when replication is done in a third-party fashion, it loses the tight integration with the dbms necessary to make it work truly seamlessly, and that it isn't maintained as well as the core product.
Perhaps this comment is off-topic, since the post is about a new release of PostgreSQL, not asking for questions about its individual features. But this is the one feature I look for in each new release, and the fact that I couldn't find any good solution makes me wonder if it's because I missed the one great one that people actually use.
In mysql, you can do something like this: update x set y=@k:=@k+1 order by z (syntax is probably a little off)
Can you do something similar in pg in a single query?
Along that line, what do PG users use for full text searching? Like for ~5mil rows each containing ~12 words.
fts - pretty simple (it stores duplicate words, and breaks down words too much, like AMAZING will store: MAZING AZING ZING ING NG which takes up way too much disk space)
tsearch2 - afaik doesn't support wildcard searches, like for AMAZ*
Do you use those? Or roll your own? Or what?
> 8.2 is positioned as a performance release.
We've only got a small database (17 million records or so), and PostgreSQL 8.1 has been handling it fine. But I'm still looking forward to seeing how 8.2 improves things.
And we're using it in another production system, too, which is going to get pretty big (I hope). Lively times!
The Army reading list
Equivalents to Query Browser and DBDesigner4/Workbench.
Use them. They rock. Query Browser does everything I used in phpMyAdmin and much more. DBDesigner4 and and it's (currently rather unstable) replacement, Workbench, are extremely useful for designing/modifying databases. I prefer PostgreSQL for speed, stability, and features, but I develop in MySQL just because of those tools.
"It ain't a war against drugs.it's a war against personal freedom" --Bill Hicks
I'd be surprised if DB/2 didn't also have it.
I worked a lot with Oracle, and then joined an open source project that started using PostgreSQL. The project is a billing system, so is data intensive. What a great little database PostgreSQL is. And that was back in th 7.x version.
Actually, jBilling http://www.jbilling.com/ now runs in many databases but still PostgreSQL is holding its ground against Oracle and other heavyweights. Those extra features that Oracle says you need and charges you an arm and a leg, are really not needed in most applications.
Cheers,
Paul C.
Sr Developer
http://www.jbilling.com/ - The Open Source Enterprise Billing System
Apparently the submitter has not been visited by any of the plethora of reporting tools vendors who will tell you (without you asking) how crappy the built-in stuff is and how great their stuff is.
Also, given the text, isn't Oracle and DB2 also missing those critical SQL:2003 Window Functions?
While it was before I joined the company, they were reportedly using Linux on this very same system, with MySQL Enterprise. One of the DBAs had been using FreeBSD at home, and had found it to outperform Linux in many cases. From what I hear, he set up FreeBSD and MySQL on a test machine at work, and they found it blew Linux out of the water in terms of performance.
I'll ask Fred tomorrow about what sort of performance they originally got under Linux. Maybe I'll see if I can even find the documentation they would have had to have prepared to justify the switch.
It sounds like you just don't know how to deal with FreeBSD. That would explain the poor performance you experienced, and how it is completely contrary to what we've found.
I'm using postgresql since the 5.x days, when it indeed was slower than mysql.
But as a developper, I never accepted the shortcomings of the non-standard and really incomplete sql syntax of mysql.
The command line tool psql with tab-completion of sql syntax and less style output of query results convinced me to switch in a second.
PostgreSQL never let me down, whereas I often had problems with mysql databases. (e.g. non working databases after upgrades)
Not to mention the semi-free open-source license of mysql.
What's all the fuss about mysql again? Mysql is a commercial product that is and was inferior to postgresql since the very beginning. The performance gain was small compared to the missing features.
That's just my two cents, but I think the mysql guys did a great job marketing their product and fooling everybody into using mysql.
... is create a smallint index on an int column ;-)
Off-topic. default mod point for an 'Anonymous Coward' is zero... even if it is a good post :-) Most moderators don't like to give mod points to ACs because they would rather reward or punish registered users... otherwise it's like throwing away good mod points.
-- I ignore anonymous replies to my comments and postings.
Not to mention the semi-free open-source license of mysql.
GPL?
All the major databases have a way of temporarily disabling integrity checking for bulk processing; it's limited to a single transaction, and the integrity/validity checks are still performed after the task is complete.
That's vastly different from turning off all checking globally and silently eating problems.
GP asked a simple question about what replication strategies are used by pg shops, and some asshole like you responds in a tone like yours.
You could have just answered the question. It wasn't necessary to be a dick about it.
Also, you might be interested to read a bit about MySQL Cluster which is different from their replication solution. Pretty neat stuff.
Also, I do agree with you that GP gave no indication that MySQL was failing to meet their needs. MySQL doesn't meet everybody's needs and neither does pgsql (or Oracle for that matter). But changing databases for "fun" is a horrible use of resources.
They don't grade fathers, but if your daughter's a stripper, you fucked up. --Chris Rock
With Oracle and SQL Server you can turn off constraints for an indefinite period of time. It may be used mostly for single bulk transactions but I've seen it used for months at a time on Oracle.
I'm sure you could cope without, but it seems like this is actually included in some shape or form.. The release notes mention:
Aggregate-function improvements, including multiple-input aggregates and SQL:2003 statistical functions
If using this setting requires major remedies to revise applications and retune them, that may be no less work than redeploying on something that has mature support for data integrity...
If you're not part of the solution, you're part of the precipitate.
On a twenty server cluster of SPARC kit with tens of processors each, MySQL can't touch Oracle for distributive processing and load balancing. Second, the point of dropping constraints for a few months was to allow the the database design to reach maturity in a development environment. Before the project reached production, constraints were turned back on.
Does PostGre have something like PhpMyAdmin, a web-browser-based front-end to MySql? I got kinda used to it for creating and managing MySql schemas.
Table-ized A.I.