I haven't used postgres for several years, and in that time I've clearly managed to forget it's huge number of annoyances and quirks.
I think that using MySQL, and either mysql-query-browser or Tora has spoiled me a bit, as using Postgres 7.4 (as shipped with debian stable, ubuntu, fedora, etc) is like stepping back 10 years.
Setting up is arcane, admittedly the packagers for the linux distro's are partly to blame for not making it easy - but, crikey, why the heck do I need to create databases before I can even log in, and I have to su to postgres to do so as there is no standard user, and I have to muck about with several configuration files just to bloody access it on localhost
The syntax is archaic and inconsistent and the manuals are lacked worked examples - the mysql docs are much clearer and nicer
MySQL and SQL Server have left me expecting things to JustWork and not require hours of tinkering before being able to run queries.
Yes, I'm sure it gets easier once you've done it for a while, but porting from mysql, which I am familiar with - and never had these troubles with to postgres sucks eggs through a straw
update: attempting to allow a webapplication user multiple permissions to all tables, sequences, etc in a single database doesn't seem to be possible - in MySQL I just grant [list of privs] on dbname.* to user, etc - in postgres I have to list the dozens of tables and associated sequences - this is incredibly tedious. Hateful thing.
agreed, setup is a pain (Score:1)
Re:agreed, setup is a pain (Score:1)
I agree that installation is one of PG's weak areas, and I think part of the reason here is the way it's packaged on many distros. On Gentoo Linux, I can run 'emerge postgresql', followed by 'ebuild postgresql-8.1.3.ebuild config' and it takes care of creating a postgres user, creating a postgres database, and initializing the database. Doing this process manually (which is the case for many distributions) is tedious and probably turns off some users. If you have a reasonable sized database you'll also n
Re:agreed, setup is a pain (Score:2)
-Dom
Re:agreed, setup is a pain (Score:1)
Wow, the venom! (Score:2)
Re:Wow, the venom! (Score:2)
"Why is the command line interface so appalingly bad? The help is non-existent on every instance I've connected to. psql at least gives you \h."
myql allows you to switch, and show databases, list and describe tables and best of all quit is quit and help is help. Table names and fields are tab completed. Postgresql is grumpy and unhelpful compared. The source command allows you to
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Re:Wow, the venom! (Score:1)
You can solve the pg_dump issue by grabbing the pg_dump from any 8.1.x version. It's been refactored to address the issue of not working between different versions.
Slony is actually a robust replication mechanism for what it's worth. It doesn't handle schema updates all that well, but I don't think many replication systems do handle that well.
There is at least one full text indexing system in the contrib tree with the source.
Re:Wow, the venom! (Score:2)
Just like psql, apart from quit/help.
"Table names and fields are tab completed."
Maybe in your version. For me, psql completes, mysql doesn't. And it gets ^W wrong to add insult to injury.
"The source command allows you to run sql scripts without exiting and piping."
In psql it's spelled
\i. Try\?for some help on the psql commands."The SQL Prompt is far easier and more powerf
Re:Wow, the venom! (Score:2)
I just had a quick peek at the online documentation
Re:Wow, the venom! (Score:2)
Trying Squirrel, I found that it can't find the jdbc classes for anything and is slow, ugly and clunky - but thats Java's fault rather than Postgres
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Re:Wow, the venom! (Score:2)
-Dom
Granting permissions on all objects (Score:1)
Yay! Relgious war! (Score:1)
While I suspect you missed a couple of simple things, you're mostly right (especially for pre 8.0)
I remember starting with MySQL back around 2000 and it was quite easy to set up.
Postgres still remains harder, especially WRT the whole pg_hba.conf or whatever that bloody file is.
I'm sure it's more secure or something, but it is still annoying.
The more important underlying issue for me though is I'm not and never wish to be a sysadmin. Installation of any database (dear god Oracle *sob*) I just
Re:Yay! Relgious war! (Score:2)
Actually I haven't found MySQL hurts you on a day to day basis and neither have the guys at google, who looked at porting to postgres and decided (wisely) IMHO to stick with mySQL.
I've found Postgres much more painful, and not just for setting up - I have to write my own bloody cast functions to convert boolean to int, I have dozens of small little queries utilising the ease of MySQL in the application I'm porting and find that each one requires a great deal of mucking about to replicate in postgres.
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Re:Yay! Relgious war! (Score:2)
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Re:Yay! Relgious war! (Score:2)
And why are you casting from boolean to integer anyway. Is this down to the fact that you've assumed integers instead of booleans everywhere in your code because you're used to MySQL (which AFAIK didn't have proper boolean columns fo
Re:Yay! Relgious war! (Score:2)
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;