It is an alternative, if the program you're using supports it. For example, in PHP, when you send the commands to mySQL, you would send slightly different commands to postgreSQL because of the syntax differences.
But, make no mistake about it, mySQL is much quicker for the type of web applications that make a lot of database queries. It can never hurt to learn. 🙂