Revisiting FreeBSD vs. Linux for MySQL 32
Dan writes "Jeremy Zawodny, who looks after all of Yahoo!'s MySQL servers says MySQL now runs very well on FreeBSD. He is no longer steering people toward Linux. There are two important things you should do to make the FreeBSD/MySQL combo work well: (1) build MySQL with LinuxThreads rather than FreeBSD's native threads, and (2) use MySQL 4.x or newer."
or (3) pkg-add -r postgresql7 (Score:3)
Re:or (3) pkg-add -r postgresql7 (Score:5, Informative)
tsearch is a very nice GIST indexed full text search that does word stemming.
reindexdb is a handy way to regenerate all of the indices in a database without interrupting anything.
earthdistance is far faster than writing the same thing as a SQL function.
ltree is wonderful when you have to deal with a hierarchy.
And those are just the ones I remember offhand...
cd ... wouldn't fit in the subject 8) (Score:2)
Re:or portupgrade -RN postgresql7 (Score:1)
Re:or (3) pkg-add -r postgresql7 (Score:5, Informative)
Re:or (3) pkg-add -r postgresql7 (Score:4, Informative)
And PostgreSQL is easier to work with. And setting up PgSQL is a breeze. And..
I could go on all day about why I don't use MySQL. Just because a great percentage of a particlar market is using something, it doesn't mean they are right. (viz: Microsoft products, on the whole, are a pain in the ass.)
Re:or (3) pkg-add -r postgresql7 (Score:2, Informative)
Consider how you find the names of all the tables in a database:
On MySQL: SHOW TABLES
On Informix: SELECT tabname FROM systables
On PostgreSQL: SELECT relname FROM pg_class WHERE reltype='r'
Now if you hadn't known about the structure of pg_class beforehand and done considerable digging into the documentation, you'd be lost. A newbie even more so. Shouldn't something so simple be easy to do?
Re:or (3) pkg-add -r postgresql7 (Score:3, Informative)
Or just \d (if you're using psql).
Re:or (3) pkg-add -r postgresql7 (Score:1)
A lot of mysql people seem to complain about the lack of the nonstandard "show tables" type commands in postgresql. But "show tables" being non-standard means you had to read the documenation to find that. If you read the postgresql documentation also instead of expecting postgresql to have the mysql non-standard extensions you'd find that in fact postgr
Re:or (3) pkg-add -r postgresql7 (Score:1)
While this isn't making any points on how good a database is, if I can't find the documentation without Googling all over the place, it isn't perfect for me.
Re:or (3) pkg-add -r postgresql7 (Score:3, Informative)
Want to claim back all this space lost when you deleted something? guess what, you'll have to lock your database. greeeaaat.
And it's so sloooooooow that now i have to dump/restore the DB every week.
And don't even mention database replication: you can do that on mySQL [zawodny.com] (with the logs), while the postgreSQL team is still struggling with this one.
Re:or (3) pkg-add -r postgresql7 (Score:1)
As to your speed problems, you must have other problems. We run billing databases on postgresql and they are in no way slow.
Re:or (3) pkg-add -r postgresql7 (Score:1)
Re:or (3) pkg-add -r postgresql7 (Score:1)
Although I think MySQL 4.0 has added transactions anyway (I may be wrong,) you may as well just have written:
(if he doesn't care if his data is correct.)
I don't understand why people be-little transaction support. It is possibly the single biggest reason to use PG over MySQL. You can throw more hardware at a slow database, but you can do nothing for corrupt data (not that PG is slow!)
Re:or (3) pkg-add -r postgresql7 (Score:1)
On IFX, to show tables you would use the dbaccess. You also use it to write and store queries, debug, etc. It's very easy to use, and even a novice could grok that.
By far, the easiest database to use is SQL Server. This is half because 'database' classes train in Access, and MSFT modeled SQL Server partially around the Access design. This means a left hand pand showing all your tables. No typing needed.
Please note that this is not an endorsement for SQLServer, but merely a statement of opinion. The server
Re:or (3) pkg-add -r postgresql7 (Score:3, Informative)
This is why those of us that do know get flapped when those that don't tell us it is not necessary. See the problem?
Re:or (3) pkg-add -r postgresql7 (Score:2)
The problem is that, since people don't know the fundamentals of relational theory, they don't know what the 'features' are (which in my mind are requirements) - so how can they effectively decide whether or not they are important?
linux threads on freebsd -release or -stable (Score:5, Interesting)
OpenBSD, too (Score:5, Informative)
A lot of threading-related work has been made during the 3.3 development cycle and there are no more unexpected crashes with this sort of apps. For instance the new threading code solved all issues I had with the Oops proxy, that is now very stable on production servers.
Time to make world (Score:3, Informative)
Thankfully, any worthwhile fixes in CURRENT will usually be backported to the STABLE. For example:
From the article:
The problem of MySQL occasionally thinking that all databases had vanished resulted from FreeBSD's non-threadsafe implementation of realpath().
CVS log for src/lib/libc/stdlib/realpath.c
MFC: make realpath thread-safe.
So personally me thinks a make world would be an idea sometime soon.
Anticipatory scheduler (Score:2, Interesting)