From: Dan Wilson <dwilson@mission.net>
To: Marc Sherman <msherman@projectile.ca>
To: pgsql-php@postgresql.org
Subject: Re: Printing Notices to the web?
Date: Thu, 24 May 2001 11:04:08 -0600
Message-ID: <002d01c0e473$8be645b0$523987cf@corp.peoplesoft.com> (raw)
References: <CGEPKMKAIFJINAOACFFEEEPNCGAA.msherman@projectile.ca>
This is an issue with the pgsql PHP extension. There is currently no way to
get that info in PHP. Personally, I think there should be a way to retrieve
a NOTICE through PHP. Much like the pg_errormessage() function, I think
there should be a way to retrieve the NOTICES. This could be very
functional for some things.
For example, I want to impliment EXPLAIN in phpPgAdmin. I can't because all
the EXPLAIN output comes through a NOTICE and their is not way to get to it.
Any C/C++ gurus that would be willing to add a function like that to the
pgsql module would be my hero!
-Dan
: Is it possible to have NOTICE messages generated by calls to
: pg_exec echoed to the client, like more serious error messages
: are? Currently, they're just being logged to syslog by php,
: which makes it difficult for me to debug them, since I don't
: know which query generated the log message.
:
: Thanks,
: - Marc
:
: ---------------------------(end of broadcast)---------------------------
: TIP 4: Don't 'kill -9' the postmaster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: dwilson@mission.net, msherman@projectile.ca
Subject: Re: Printing Notices to the web?
In-Reply-To: <002d01c0e473$8be645b0$523987cf@corp.peoplesoft.com>
References: <CGEPKMKAIFJINAOACFFEEEPNCGAA.msherman@projectile.ca> <002d01c0e473$8be645b0$523987cf@corp.peoplesoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox