Slashdot Mirror


PostgreSQL 8.0 Released

Christopher Cashell writes "The PostgreSQL project has released version 8.0 of their well known Object-Relational Database. New features include: Win32 Native Server, Savepoints, Point-In-Time Recovery, Tablespaces, and lots more. Downloads are available via bittorrent for Unix/Linux, and the much anticipated Win32 version, or via ftp (use a mirror!)." (Here's the official announcement.)

17 of 556 comments (clear)

  1. Re:Finally by Anonymous Coward · · Score: 1, Interesting

    Even more important than being a replacement for MySQL, in many situations it can be a replacement for MSSQL!

  2. Java Stored Procedures? by SQLz · · Score: 2, Interesting

    What happened to the big news about the Java stored prodcedures? Wasn't there some news not to long ago about adding support for this in Postgres? To me that would been a more welcome feature than the rest of the stuff.

  3. Typical by Anonymous Coward · · Score: 2, Interesting

    I hate it when MySQL fanboys jump into threads like this only to show their ignorance of relational algebra and predicate calculus saying that no one should ever bother with PostgreSQL and ACID-compliance, because MySQL is somehow a "better tool for the job" in the "real world". We already have comments saying that, so people, please read this first: [1] [2] [3] [4] [5] [6] [7] before you post yet another misleading plug for your favorite toy. Thank you. A real relational database is more than just a data store with SQL frontend.

  4. Looking good! by unixMafiA · · Score: 2, Interesting

    Good to see they're back in the race, coming up with something serious - and Thanks, Oracle! for being a tough competitor providing a solid standard to keep up with. PostgreSQL is, in my opinion, the most presentable of not-too-much-$ database solutions, I sure like to present clients with a new version of P rather than the crummy image of MySQL (by no means an inferior product but not profiled in the same, serious way). Ah and let's see how it runs on Mac OS/X - Darwin, too. Maybe my little 12" will become all the more a p0w4hful tool because of it - and it had better, I haven't paid the thing off, yet! ...

    --

    * Signal 15... "Ceterum censeo Microsoftem esse delendam." Cheers cq. BRgds: DrS aka UNIXmafia@ribeco.net
  5. Two more features... by teqo · · Score: 4, Interesting

    ... and it would really really rock!

    • Hot tablespace-based backups, combined with write-ahead log backups, as seen in Oracle since version 8 (or even 7?) This is an extremely nice feature when you have large databases and no chance for regular scheduled downtime and still want backups, both complete and incremental ones. Compared to the export-based feature of PostgreSQL, it would put way less load onto the server, because tablespace-based and WAL-based backup bypasses the SQL engine, so it is copying a (for example) 200 GB files vs. 200 GB query-based export
    • Better and more integrated replication. There are a number of independent projects that want to create replication add-ons, like pgreplication and the older, more academic Postgres-R, but that's not really production quality so far. According to some consultant that is working tightly with PostgreSQL and the developers, they are working on it, but he was really hedging when asked about advanced features and was theorizing how practically impossible and/or expensive multi-master realtime replication would be... An optional feature for many users, granted, but still something you might want for scaling beyond certain limits.

    Said that, PostgreSQL is a really great thing, and being FOSS, I could of course always go ahead and add the named features... .)

  6. Re:PGSQL has its own gotchas by JohanV · · Score: 4, Interesting

    I would consider the PostgreSQL gotchas to be of an entirely different category as the MySQL gotchas.
    In PostgreSQL the gotchas are all about performance. And while it may be bad that the database crawls if I didn't schedule a job with vacuum and analyze, that does not have any long term effects. I just run the maintenance tasks manually, add them to a cronjob and I am good to go.
    In MySQL however, the gotchas are mostly about data integrity. And that means that they can be disasterous because they can lead to dataloss. Unless you can explain to me how to get back whatever was silently truncated by MySQL if I discover the problems a few days later.

    I do very much prefer PostgreSQLs focus on data integrity. But of course I actually read the manual so I won't be bitten by them in either database.

  7. Re:Finally by GuyWithLag · · Score: 3, Interesting

    In my last project I was forced to use MySQL due to hosting issues. I still believe that MySQL is the Access of the OSS dtabases (in a non-GUI way).

  8. Re:PGSQL has its own gotchas by StormReaver · · Score: 4, Interesting

    I have several tables with over 3 million rows, and most aggregates return immediately (or nearly immediately). count(*) is the only dog since it reads every row to get the count, but it's acceptable since I rarely count all rows in the table. I've often wondered why the developers couldn't keep an internal count of all active rows, so count(*) would return immediately, but I'm sure they have their reasons.

    You've got to be joking about PostgreSQL having a weak optimizer. If it's weak, only the computer can tell.

    Your Wiki link spent most of its space praising PostgreSQL for its advanced features, while your intent is clearly to denigrate it. If that represents PosgreSQL's worst facets, then I am very, very happy.

  9. Re:Vital Data by Anonymous Coward · · Score: 1, Interesting

    I wrote a PHP program that tracks my gf's and I's finances

    Be very careful with PHP there. Be sure you're using transactions to make sure your page finishes loading, or an error on the page might make half your database statements execute before PHP says "oh wait, this is wrong" and dies. There are other cases too... if your browser drops the connection theres a php configuration flag you have to set to make sure the script completely executes instead of terminating immediately, and other gotchas inherent in this.

    So to recap: "pgsql has transactions, use them."

  10. Re:PGSQL has its own gotchas by Anonymous Coward · · Score: 1, Interesting

    My favorite gotcha not mentioned is how MySQL's own system tables are all MyISAM. That's right, they're not transaction-safe, so if you roll your own admin scripts, be very very very careful.

  11. Re:Related Objects by danharan · · Score: 2, Interesting

    Seems to me Hibernate is the closest there is in that field. IIRC its lead is now working on EJB3 specs. It's a Jboss project, and I've used it with Tomcat without problems.

    --
    Information: "I want to be anthropomorphized"
  12. Re:PGSQL has its own gotchas by Dan+Ost · · Score: 2, Interesting

    Have you used PostgreSQL recently?

    Performance hasn't been an issue since at least version 7.

    --

    *sigh* back to work...
  13. Replication by dmadole · · Score: 2, Interesting

    If only a simple and integrated replication mechanism would appear, I would consider switching back to PostgreSQL from MySQL.

    I miss PostgreSQL, but too many things are made easier by replication.

  14. Re:PGSQL has its own gotchas by JohanV · · Score: 4, Interesting

    Performance is still an issue when you don't read the manual and never perform maintenance on your database. No matter how good the planner is, if it doesn't have acurate statistics because nobody ever runs ANAYZE your database will crawl. No matter which version you use, if you never VACUUM dead row versions will accumulate and eventually kill your performance.

    I use PostgreSQL on a daily basis and when I change a database schema I will make sure that I run a VACUUM ANALYZE after committing the changes. But many of the people that we host don't bother to read the manual and don't do this. Usually this is no big deal because it gets picked up by the scheduled jobs. But every now and then somebody calls in a panic because their website is slow. And it always turns out to be major schema changes throwing the planner off. A quick VACUUM ANALYZE gets the performance up again and the customer is happy and has (hopefully) learned a valuable lesson.

    This is a real gotcha in PostgreSQL. It has made a few of our customers' websites crawl for a few hours on occasion. But it has never caused dataloss.

  15. Re:It's easier to install and admin than mysql by randall_burns · · Score: 2, Interesting
    Postgres is really an Oracle killer at this point, and I know, having used Oracle. There is quite simply no reason to use any other relational database at this point, especially to back a live web site.


    I'd be careful with statements like this. Postgres competes well with Oracle for a variety of applications. However, Oracle still has some VLDB and high availability features that aren't yet available for Postgres. Also, for a lot of folks, what matters isn't the database, but stuff like the availability of financial packages. There is also a lot of inertia with Oracle-that could be handled by creating libraries that give Postgres a higher degree of API and language compatibility with Oracle. I'm rooting for Postgres-but Postgres has a ways to go before Oracle is truly dead.

  16. Re:That's really dumb. by einhverfr · · Score: 2, Interesting

    You're telling me that MySQL locks the entire table when I insert a row? You must be joking - that would bring a database to it's knees.

    Why do you think MySQL performs so poorly with large number of concurrent users?

    --

    LedgerSMB: Open source Accounting/ERP
  17. Re:Change Column Types - finally by tweek · · Score: 2, Interesting

    I think DB2 and other commercial databases do it this way anyway. They just encapsulate all the steps in an the ALTER table function.

    One thing to add is that you might have to rebuild any indices that use that column though. That's bitten us a few times using third party tools.

    --
    "Fighting the underpants gnomes since 1998!" "Bruce Schneier knows the state of schroedinger's cat"