Re: [HACKERS] How to print explain using PHP

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Martin A(dot) Marques" <martin(at)math(dot)unl(dot)edu(dot)ar>, pgsql-general <pgsql-general(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] How to print explain using PHP
Date: 2001-01-09 19:52:16
Message-ID: Pine.LNX.3.96.1010109204415.12454R-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


On Tue, 9 Jan 2001, Bruce Momjian wrote:

> I think the issue here was that these functions don't make any sense for
> PHP because you can't register C functions.

I mean (I know) that you can register some common (internal) PHP
function and this function can call your PHP function. It is some used in
XML Expat parser that use element handlers (functions).

It's very good resolvable in PHP... see php-4.0b3/ext/xml/xml.c as example

Karel

>
>
> >
> > On Tue, 9 Jan 2001, Martin A. Marques wrote:
> >
> > > I'm working with PHP and Postgres, and if I try to do an EXPLAIN query, with
> > > PHP, to the postgres backend the output goes to the error_log file of apache
> > > and I don't know how to redirect that output to the browser.
> >
> >
> > Good point, before some time somebody (Bruce?) ask if anything is
> > needful add to PostgreSQL extension in PHP. You found that...
> >
> > PHP not support libpq's routine:
> >
> > PQnoticeProcessor
> > PQsetNoticeProcessor( PGconn *conn,
> > PQnoticeProcessor proc,
> > void *arg);
> >
> >
> >
> > Karel
> >
> >
>
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-01-09 19:53:21 Re: [HACKERS] How to print explain using PHP
Previous Message Bruce Momjian 2001-01-09 19:43:17 Re: [HACKERS] How to print explain using PHP

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-01-09 19:53:21 Re: [HACKERS] How to print explain using PHP
Previous Message Bruce Momjian 2001-01-09 19:43:17 Re: [HACKERS] How to print explain using PHP