Skip site navigation (1) Skip section navigation (2)

PG + PHP, was Re: Zend survey result about dbms...

From: Richard Huxton <dev(at)archonet(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, newsy(at)lewczuk(dot)com
Cc: "Lista dyskusyjna pgsql-php" <pgsql-php(at)postgresql(dot)org>,"Lista dyskusyjna pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: PG + PHP, was Re: Zend survey result about dbms...
Date: 2003-09-20 11:48:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-php
On Friday 19 September 2003 16:18, Tom Lane wrote:
> Now that MySQL AB has put a stake through the heart of that connection
> by GPL'ing their client libraries, we might start to get a little better
> traction with PHP users...

Speaking as a PG+PHP user, the new plphp procedural language should be very 
useful. I fully intend to be writing a code generator that can produce 
validation functions to be run in PG and in the app. About time I stopped 
writing two sets of validation code. I'll stick it on gborg if no-one gets 
there before me.

One thing I think would be useful is another pseudo-var in PG, something like 
APP_SESSION_VAR which can be set and then used in PG queries. This would make 
it much easier to write queries like:

CREATE VIEW my_project_list AS

At the moment you can do this sort of thing easily enough for straightforward 
queries, but views/function bodies are a PITA.

Tom - if I offered to produce a patch for something like this - either a var 
or a function pair (get_app_session_var(), set_app_session_var(varchar)) 
would it be likely to be accepted? I've probably got some free time towards 
the end of the year.

  Richard Huxton
  Archonet Ltd

In response to


pgsql-php by date

Next:From: Tom LaneDate: 2003-09-20 14:50:00
Subject: Re: PG + PHP, was Re: Zend survey result about dbms...
Previous:From: Frank FinnerDate: 2003-09-19 21:08:41
Subject: Re: Interview questions?

pgsql-general by date

Next:From: Gaetano MendolaDate: 2003-09-20 11:57:12
Subject: Re: This mail list and its policies
Previous:From: Gaetano MendolaDate: 2003-09-20 11:32:26
Subject: Re: add constraints to views

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group