Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 57CB6B5DC46 for ; Mon, 15 Aug 2011 21:15:47 -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 68253-01-9 for ; Tue, 16 Aug 2011 00:15:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp108.prem.mail.ac4.yahoo.com (smtp108.prem.mail.ac4.yahoo.com [76.13.13.47]) by mail.postgresql.org (Postfix) with SMTP id 286BDB5DD87 for ; Mon, 15 Aug 2011 21:14:38 -0300 (ADT) Received: (qmail 50748 invoked from network); 16 Aug 2011 00:14:38 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=g9wDg5yWe3Iiw/VDbF11WTM8vx38Et+69rjYorf9Ky7ccr5uuVIegPKR7Ftqzw7isXdD0e2Ga2ZvL9gm9Xewv2E0+4zgJt8Us2U+KjxPMsQCzlLcRJ3b0xMCkd+ggkrERTm4c/UMKxphUBvm+LvooIDHStwR2L8S80cHWovI0Rc= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1313453678; bh=S0ANNqbrzl9xbHfQZXpl0Oo60+dmQbo3W6VPIX++zGc=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:Content-Language; b=TZxjzC/4xu9eO+qdnJsalDl0pq5mb5BQ/cb7URI7U+2GV9U+I5huENetgCAG+0pZyr2AFz38/isGyFzvADyWcHhncXM7G6AEV2DCKRpi7CgGRSQF+0oRu62vCIRy+8pY99AXgT69xUNveYOF3GQAga/EbjecnaqRLnN8ZJnFnbU= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: CmQatdMVM1lWGhYWolM8hrgq7kwuS_kggUoYMGhoh2uJdFd WYTiq3ZJMCMWiPGNAHpRRofz1LdolsExUpGPXQQbAW1zmkiwCJYyxO_oqEO8 JRZxidWg9iWPFSj8XGPQA5y.dgI02a2wQEFiDR6jyKMJHZrgGSFfSt3o.seH U4jqlFEGqvkiLJdrCwKrlEEbpy4oqg56dBwd1jIvqQilgXXgUBNvgyOJSik1 jv4GW3.aB3Gl2ZDuKNlevJE9RS5ef_JxKfDbDpjECHJIMUi159Cipvb1qqXO u3OWGDBFOsxta3a6iDcxUSmO1S8xl.Gp_WlbSQwfx5YUVDCbhm3RhqQQJOQl JdBMCpWw9v4J.ta5VvXGLSJzRKlk4bF0_s2tqnUJmJLBx2ISsBaNNxxDNNhV KcGPPcw-- X-Yahoo-SMTP: mpGJl6eswBD2IBufoVEg0Pa8gg-- Received: from WolfDog (polobo@66.67.24.143 with login) by smtp108.prem.mail.ac4.yahoo.com with SMTP; 15 Aug 2011 17:14:38 -0700 PDT From: "David Johnston" To: "'Darren Duncan'" Cc: References: <4E498536.9080109@darrenduncan.net> <008301cc5b95$e287b120$a7971360$@yahoo.com> <4E49A208.5070604@darrenduncan.net> In-Reply-To: <4E49A208.5070604@darrenduncan.net> Subject: Re: Using Postgresql as application server Date: Mon, 15 Aug 2011 20:14:18 -0400 Message-ID: <009701cc5ba9$72ee6b10$58cb4130$@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGujA4KJPJHOJFqRt+aBWOAzi9XwgKP2+KuAkddIHsB57xzdZUkLEFg Content-Language: en-us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.886 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.988, UNPARSEABLE_RELAY=0.001 X-Spam-Level: X-Archive-Number: 201108/468 X-Sequence-Number: 178750 -----Original Message----- From: pgsql-general-owner@postgresql.org = [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Darren Duncan Sent: Monday, August 15, 2011 6:48 PM To: David Johnston Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Using Postgresql as application server David Johnston wrote: >>> I believe that it is ideal for Postgres to be computationally=20 >>> complete in that one *could* use it to implement a complete=20 >>> application. That isn't to say one should do this as a matter of=20 >>> course, good to use appropriate tools for a >>job, but that it=20 >>> should at least be possible if one wanted to. -- Darren Duncan >=20 > So who wants to fund the effort to create the necessary infrastructure = > to display a programmer-defined user interface screen (think of the = "Forms" > module in Microsoft Access)? Or are you expecting the end-user to=20 > open up PgAdmin and type "SELECT hello_world();". I would argue that=20 > because PostgreSQL is able to talk with many languages that can create = these "Forms" > (or even - through extensions - a web-browser) that such functionality = > is NOT DESIREABLE and thus PostgreSQL would not ideally be=20 > "computationally complete" by that definition. I mean computationally complete in that Postgres is an application-level = virtual machine within which it is technically possible to write an = emulator for any given computationally complete language using just = stock Postgres and stock PLs, such that say you can just feed a = self-contained script to psql and that this script is an application = capable of doing anything. I'm not saying that it has to perform well = but just be possible. I certainly don't expect any interface-related higher level libraries = from this effort, but the foundation should be there so users can create = their own just by writing an installable Postgres extension consisting = of PL procedures etc that don't need a C compiler. I believe we basically have all the foundation already, with maybe = procedures executable outside transactions being the last major part. -- Darren Duncan -------------------------------------------------------------------------= ------------------- This whole line is getting somewhat off-topic; we're not talking about a = "computationally complete" application but simply one that can handle = HTTP requests and dispatch calls to user-defined methods. This seems = like a small-enough requirement and seems to already have a solution = (though I haven't looked at the provided links); whether you call it = PostgreSQL or not is a matter of semantics (as is much of this thead). That said... Please restate your request in terms of benefits as opposed to checklist = of cool features that barely work but, because they are present, can be = added to the marketing materials. I rather cater to a user that is capable and willing to choose multiple, = separate, best-of-breed applications as opposed to those that want = "Microsoft Access" on steroids. Given limited resources even software = obeys the axiom "Jack of All Trades; Master of None". If PostgreSQL was actually getting money for each user then maybe a = focus on adding additional "user experience" features would be = warranted; as it is the effort should be in making the Free Core as good = as possible and encourage and assist a community to build tools (core = augments and developer). This is opposed to the "do everything = ourselves" mentality that you seem to prescribe. While this community = exists now my personal impression is that more efforts could be taken to = make it more prominent and accessible to users. Think of it as giving = new users the course outline and "required reading" documents and then = saying that they can spend the time to teach themselves the fundamentals = or direct them to capable teachers who can help guide them. Likely = these teachers would be willing to provide the outline and other = materials for the opportunity to gain new students. PostgreSQL could = then serve as an unbiased moderator; attempting to make sure that there = is a variety of philosophies represented as well as to review the = accuracy/tone of the materials that they certify. David J.