Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

PostgreSQL Expand / Collapse
Author
Message
Posted Thursday, June 06, 2002 11:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, August 26, 2002 12:00 AM
Points: 7, Visits: 1
I would love to hear from anyone who has worked w/SQL Server and PostgreSQL. We are looking at moving some products to PostgreSQL for cost reasons. (Licensing costs way more than the hardware we will be using - doesn't seem right)

I'll be building a red hat box and getting things started today.

Any pitfalls to look out for? Major differences that I need to be aware of?

Any comments appreciated.

He is no fool who gives up what he cannot keep in order to gain that which he cannot lose.



He is no fool who gives up what he cannot keep in order to gain that which he cannot lose.
Post #4664
Posted Thursday, June 06, 2002 11:32 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, September 27, 2012 10:43 PM
Points: 126, Visits: 56
I've worked with both...

PostgreSQL definately has some pitfalls that you should be aware of,
but I've been able to work around most of them.

First off and most annoying is the lack of a good joined update command.
The select statement in PGSQL does not allow for table aliases and does not conform to the same syntax as mssql.

Instead of:
select * from table1 a join table2 b on a.pkey=b.pkey

You have to use:
select * from table1 join table2 where table1.pkey=table2.pkey

Another particular area of annoyance is the lack of a stored procedure,
instead everything is done with functions and only on return variable is allowed. You can have more than one function of the same name as long as they accept different datatypes. This has some interesting uses but is mostly more difficult to manage. There is not really a native language for writing function either... it seems like plpgsql is the closest.

Let me know if you have any other questions,

Dan




Post #35098
Posted Monday, July 01, 2002 2:18 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Saturday, February 08, 2003 12:00 AM
Points: 20, Visits: 1
[font=Verdana]how about performance ??

triggers, mail, views, jobs, scheduled tasks, etcetera.

greetings, Deejay[/font=Verdana




Post #35099
Posted Monday, July 01, 2002 10:41 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, September 27, 2012 10:43 PM
Points: 126, Visits: 56
I didn't have to play around with triggers on PostgreSQL so I can't add much value there...
Views seem to be the same (other than the different select syntax)
Jobs and scheduled tasks have to be handled by the operating system (cron for unix, AT fot NT)
There is a simple and full recovery model, although I've never setup the full recovery model.




Post #35100
Posted Monday, July 01, 2002 10:48 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, September 27, 2012 10:43 PM
Points: 126, Visits: 56
Oh yeah you asked about performance too...
I can't really say for sure since my application isn't in production yet (www.roushi.net). I would assume it would be similar to MySQL (optimized for select statements on porn sites). It seems like they have done alot to improve the update engine, but I don't think that their internal flat file structure is setup to compete with SQL or Oracle performance.




Post #35101
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse