Re: Using Postgresql as application server

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Andreas Joseph Krogh <andreak(at)officenet(dot)no>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Using Postgresql as application server
Date: 2011-08-15 14:36:23
Message-ID: CAHyXU0xQp+-sA6-oPJVTYaFBYO_R4P=fnX+jm8Pgy_j0rPcO7Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Sat, Aug 13, 2011 at 2:30 PM, Andreas Joseph Krogh
<andreak(at)officenet(dot)no> wrote:
> No, PG has never, and will never, act as an application-server.

Why in the world not? Now, it may or may not be a good idea but there
is no technical constraint that prevents postgresql from being used in
this fashion. I think it's a fine idea.

Postgresql has certain features, in particular being able to implement
functions in any language, that make it uniquely well suited among its
peers to act as a application server platform. Having a
quasi-functional front end to your middeware procedural code is very
powerful as is having direct access to a local data store for caching
and spooling purposes. So powerful that I would argue that if
properly supported by tools it would be superior to many of the more
classic stacks in use today. I could go down the list of reasons why
that's the case -- tight coupling with data, performance, emphasis on
transactional coding, etc. There are downsides too, but those could
be mitigated with some thought and work.

Postgres is not just a database -- it's a language hosting platform if
you want to use it as such. Now, you can continue to do things as
you've always done (database 'here', code 'here', web server 'here'),
but why discourage people from trying out different things?

merlin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Andreas Joseph Krogh 2011-08-15 14:50:28 Re: Using Postgresql as application server
Previous Message c k 2011-08-14 17:58:55 Re: Using Postgresql as application server

Browse pgsql-general by date

  From Date Subject
Next Message Dragan Zubac 2011-08-15 14:38:52 PostgreSQL 'hosting'
Previous Message Scott Marlowe 2011-08-15 13:47:10 Re: Pg_dump Query