Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B1361B5DBE1 for ; Sat, 13 Aug 2011 14:24:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 36824-07 for ; Sat, 13 Aug 2011 17:24:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.bestmx.ru (mail.bestmx.ru [84.19.186.203]) by mail.postgresql.org (Postfix) with ESMTP id 6A49FB5D803 for ; Sat, 13 Aug 2011 14:24:16 -0300 (ADT) Envelope-to: pgsql-admin@postgresql.org Received: from [84.19.186.203] (helo=mail.bestmx.ru) by mail.bestmx.ru with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QsHwS-0005iy-L3 for pgsql-admin@postgresql.org; Sat, 13 Aug 2011 21:24:14 +0400 Message-ID: <4E46B33B.7090801@bestmx.ru> Date: Sat, 13 Aug 2011 21:24:11 +0400 From: "sad@bestmx.ru" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110706 Firefox/5.0 SeaMonkey/2.2 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Using Postgresql as application server References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.712 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.812 X-Spam-Level: X-Archive-Number: 201108/122 X-Sequence-Number: 38109 c k wrote: > from last few months I am reading and searching for can postgresql > used as application server? > So i am thinking if I can use postgresql as web application server. > > I request to users and developers give your suggestions and opinions. > Waiting for your replies. Yes! Yes And Yes, my friend! You should! i am using postgresql exactly as application server. (stored procedures in PLpgsql) at http://platzcart.com i managed to minimize server side scripting: Stored procedures run entire "business logic" + PHP envelop results into HTML code. and in the next project (yet under construction) i managed to ELIMINATE server side scripting at all (except captcha server, which is standalone (written in perl)) PLpgsql "business logic" again + client side JS is building presentation. most important point to support you is *This is the originally intended usage of a DBMS* All the troubles, all the NoSQL whining caused by unnecessary middleware. P.S. i have held a report to NLUUG Spring Conference 2011 about platzcart.com implementation it is located at http://platzcart.com/lib/platzcart.pdf it clearly describes advantages of using postgresql as an application server. and i am sure it explains the good practice (maybe the best one) P.P.S. now i am using nginx_http_postgres_module