Re: Philosophical question

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Andreas <maps(dot)on(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Philosophical question
Date: 2011-12-15 01:02:24
Message-ID: 4EE94720.5040906@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/15/2011 01:16 AM, Andreas wrote:
> Am 14.12.2011 14:28, schrieb Craig Ringer:
>> On 14/12/2011 8:32 PM, Andreas wrote:
>>> Hi,
>>>
>>> I asked elsewhere about the best way to store db credentials within
>>> a user-session of a web-app.
>>>
>> Where? Link?
>
> Well, it was on the general list of php.net.
> I read your link and understood your not a particular fan of PHP.
I'm not, but all I was referring to there is that PHP's persistent
connections are a very basic tool that for decent performance must be
used with a connection pool. That can be either a pool built in to the
database for those DBs that support it or via a proxy like PgPool or
PgBouncer for DBs like Pg that don't.

If that gave the impression I really dislike the language it wasn't
intended. The runtime isn't as sophisticated, sure, but that has
advantages as well as downsides.

PHP is really handy for quickly putting together basic webapps and has a
lot going for it, especially if you use the more recent versions, enable
the security features, and ALWAYS USE PARAMETERISED STATEMENTS in SQL
rather than string concatenation.

> I'll need to let some specific external users access our PG DB that up
> until now uses a MS-Access frontend.
> PHP seemed to be the easiest approach without having to mess around
> with ASP or JAVA and all this.

Yep, it probably is. The only other thing I'd maybe want to play with is
JBoss Seam Forge - however it's pretty immature and rather under-documented.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Edson Richter 2011-12-15 02:15:21 Re: Philosophical question
Previous Message Craig Ringer 2011-12-15 00:56:18 Re: Vacuum and Large Objects