LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-17-2008, 10:25 AM   #1
PaladinOfKaos
LQ Newbie
 
Registered: Mar 2006
Location: Oregon, Earth, Sol System, Orion Arm, Milky Way Galaxy
Distribution: Gentoo
Posts: 13
Blog Entries: 1

Rep: Reputation: 0
MySQL or Postgre SQL


The company I work for is looking to move away from our 10-year-old NT4 based network, and Linux is a possibility (needless to say, I'm thrilled by that).

I'm putting together a proposal for the server design at the moment, and I have no idea which SQL server to recommend. I'm not particularly well-versed in that area (I know how to set up both MySQL and PostgreSQL, and have used them for small-ish personal projects, but that's all), so I'm coming to the community with our use case, and hopefully it matches one better than the other.
  • < 10 Employees
  • Insertions and modifications happen in bunches, though not at predictable intervals
  • Queries happen whenever
  • The database stores customer information, with several hundred new entries/year.
  • We need to be able to import from our old Borland database. (I expect we can export to flat text files and then import those files, but a smoother transition system would be nice)
  • Smaller footprint would be nice, so we can keep the server hardware cost down
  • If it could last at least 10 years, that would also be nice


EDIT: Yes, I know there's no space in PostgreSQL. My brain put it in there and LQ doesn't let you adjust topics after a post has been made =(

Last edited by PaladinOfKaos; 10-17-2008 at 10:46 AM.
 
Old 10-17-2008, 11:36 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Here's how I choose between the two.. If you're running a blog or some simple php application, go with MySQL. If you're actually running a business with commercial class application with databases, use PostgreSQL. You'll be glad you used PostgreSQL over MySQL when it comes to business needs.
 
Old 10-17-2008, 01:05 PM   #3
evaluatinglinux
Member
 
Registered: Oct 2008
Posts: 45

Rep: Reputation: 15
I thought these links would be useful.

http://www.wikivs.com/wiki/MySQL_vs_PostgreSQL
http://articles.techrepublic.com.com...1-1050671.html
http://archives.postgresql.org/pgsql...2/msg00895.php


Good luck with your migrations ...


Debian Kernel

Last edited by evaluatinglinux; 10-25-2008 at 02:52 AM.
 
Old 10-17-2008, 01:32 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by evaluatinglinux View Post
Umm.. That last link is to a benchmark that's from 2000. The guy testing was running Red Hat 6.0. I'm a thinkin things have greatly changed since then and those tests really don't go into detail of what the system was being used for, etc. IMHO that comparison and benchmark should be discarded.
 
Old 10-17-2008, 01:40 PM   #5
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
It makes no difference. I'd go with MySQL since it is widely supported and many applications provide interfaces to MySQL. PostgreSQL not quite so much.

If you are writing your own application and need to pick a database then it really makes no difference.

Both are highly reliable and scalable, well documented and supported by active open communities. MySQL has just been acquired by Sun Microsystems.

All our servers run both MySQL and PostgreSQL and we have applications which use both databases.

Last edited by AuroraCA; 10-17-2008 at 01:42 PM.
 
Old 10-17-2008, 01:46 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I guess my first reply is kind of vague.

The reason I say blog and smaller php applications is that most don't really rely on transactions. MySQL will probably give you a little more speed out of the two. If it's for a web application and you only want speed, go with MySQL.

If you have a more structured and complex database with the needs for transactions, go with PostgreSQL. PostgreSQL is more standards compliant as well when it comes to SQL. If you use or migrating from Oracle, Sybase, MSSQL or most other commercial type databases, PostgreSQL is probably your better choice.

Both have their pros can cons, it really just depends on how you'll be using it with whatever application.
 
Old 10-17-2008, 06:19 PM   #7
PaladinOfKaos
LQ Newbie
 
Registered: Mar 2006
Location: Oregon, Earth, Sol System, Orion Arm, Milky Way Galaxy
Distribution: Gentoo
Posts: 13

Original Poster
Blog Entries: 1

Rep: Reputation: 0
evaluatinglinux: I found the wikivs page after posting my question here, and I found it quite informative. I'm not sure I want to take the 2000 or 2002 articles to have any value at this point - a lot can change in 6 years, never mind 8.

At this point I'm leaning towards PostgreSQL. Its closer adherance to the SQL standard should make porting our old software easier. The databse load we have is so light that any performance differences most likely wouldn't be noticable.

The transaction support in PostgreSQL is nice to have too. I don't think it's actually necessary for our workload, but then again I'm not a databse expert.

I'm still open to any more info comparing the two if anyone has it, though.
 
Old 10-17-2008, 07:02 PM   #8
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I think it only matters if you use features which are unique to one or the other. This is a decision which can only be made by whoever is responsible for the databases. In all projects I have been involved in, only the most basic SQL features have been used, so there is no difference whatsoever between MySQL and PostgreSQL.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postgre SQL JDBC promo3000 SUSE / openSUSE 4 08-17-2006 08:31 AM
Default databases in Postgre SQL redhatrosh Linux - Software 6 11-18-2005 06:33 AM
Create User in Postgre Sql waynejkruse10 Linux - Software 7 09-05-2005 10:53 AM
Postgre SQL agallant Programming 1 05-12-2004 09:32 PM
(postgre) SQL question J_Szucs Programming 4 09-18-2003 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration