X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E1B3DD1D8BB for ; Mon, 24 Nov 2003 16:05:13 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 40076-10 for ; Mon, 24 Nov 2003 12:04:40 -0400 (AST) Received: from mail.kzsdabas.sulinet.hu (comp10.kzsdabas.sulinet.hu [195.199.4.10]) by svr1.postgresql.org (Postfix) with ESMTP id DE763D1D729 for ; Mon, 24 Nov 2003 12:04:23 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mail.kzsdabas.sulinet.hu (Postfix) with ESMTP id 3161B23B5EB1 for ; Mon, 24 Nov 2003 17:01:58 +0100 (CET) Received: from mail.kzsdabas.sulinet.hu ([127.0.0.1]) by localhost (linux.kzsdabas.hu [127.0.0.1]) (amavisd-new) with ESMTP id 19170-04 for ; Mon, 24 Nov 2003 17:01:57 -0000 (CET) Received: from kzsdabas.sulinet.hu (unknown [192.168.0.254]) by mail.kzsdabas.sulinet.hu (Postfix) with ESMTP id AF5C91C08ADF for ; Mon, 24 Nov 2003 17:01:57 +0100 (CET) Message-ID: <3FC22BEF.806@kzsdabas.sulinet.hu> Date: Mon, 24 Nov 2003 17:03:59 +0100 From: =?ISO-8859-2?Q?G=E9mes_G=E9za?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.4) Gecko/20030630 X-Accept-Language: hu, en-US MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: What is the advantage References: <3fbfbbfe.2dd6.0@net.hr> In-Reply-To: X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new amavisd-new-20020630 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/400 X-Sequence-Number: 11387 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 William ZHANG írta: | ""Ivan"" 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-----