Re: What is the advantage

From: Gémes Géza <geza(at)kzsdabas(dot)sulinet(dot)hu>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: What is the advantage
Date: 2003-11-24 16:03:59
Message-ID: 3FC22BEF.806@kzsdabas.sulinet.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William ZHANG írta:
| ""Ivan"" <zenzo(at)net(dot)hr> Writes news:3fbfbbfe(dot)2dd6(dot)0(at)net(dot)hr(dot)(dot)(dot)
|
|>As I am new in the world of PostgreSQL I would like to know what are the
|>advantages of using it.
|
IMHO:

Stored procedures
Triggers
Views
Rules

With them you can embeed your aplications logic right in the database,
instead of implementing it on the (database) client application, in this
way no mather how you connect to the database, from psql, a webap, or a
GUI application you will "see" the same thing.
E.g. if for a payment are allowed sums between $100 and $1000 you could
prevent inserting other values by defining a trigger. Or if modifying
some data in a table should happen when you insert something in an other
table, you could write a rule, for it.

Best Regards,

Geza Gemes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/wivv/PxuIn+i1pIRAs/iAJ9lEdNe0CfXYw15zLuuLS+LBdkqcgCfQ3cU
h9yVsRMWTX7F99zLd/PoV1o=
=FP5A
-----END PGP SIGNATURE-----

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Anjan Dave 2003-11-24 16:42:01 Re: file too large, segmentation fault
Previous Message Armel HERVE 2003-11-24 14:50:41 Problem with pg_dump / pg_restore