pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gémes Géza <geza@kzsdabas.sulinet.hu>
To: pgsql-admin@postgresql.org
Subject: Re: What is the advantage
Date: Mon, 24 Nov 2003 17:03:59 +0100
Message-ID: <3FC22BEF.806@kzsdabas.sulinet.hu> (raw)
In-Reply-To: <bppni8$1cmj$1@news.hub.org>
References: <3fbfbbfe.2dd6.0@net.hr>
	<bppni8$1cmj$1@news.hub.org>

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

William ZHANG írta:
| ""Ivan"" <zenzo@net.hr> Writes news:3fbfbbfe.2dd6.0@net.hr...
|
|>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-----




view thread (10+ messages)  latest in thread

Message-ID: <3FC22BEF.806@kzsdabas.sulinet.hu>
Permalink:  ../3FC22BEF.806@kzsdabas.sulinet.hu/
Also on:    postgresql.org/message-id/3FC22BEF.806@kzsdabas.sulinet.hu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: geza@kzsdabas.sulinet.hu
  Subject: Re: What is the advantage
  In-Reply-To: <3FC22BEF.806@kzsdabas.sulinet.hu>
  References: <3fbfbbfe.2dd6.0@net.hr> <bppni8$1cmj$1@news.hub.org> <3FC22BEF.806@kzsdabas.sulinet.hu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox