Re: Silencing NOTICEs in Perl Pg

Поиск
Список
Период
Сортировка
От Andrew Perrin
Тема Re: Silencing NOTICEs in Perl Pg
Дата
Msg-id Pine.LNX.4.21.0208291411050.27669-100000@perrin.socsci.unc.edu
обсуждение исходный текст
Ответ на Silencing NOTICEs in Perl Pg  ("David F. Skoll" <dfs@roaringpenguin.com>)
Ответы Re: Silencing NOTICEs in Perl Pg  ("David F. Skoll" <dfs@roaringpenguin.com>)
Список pgsql-admin
Sure - when you create the database handle, do:

$dbh =
DBI->connect('dbi:Pg:dbname=<dbname>',"<user>","<password>",{RaiseError=>0});

(use the RaiseError feature)

ap

----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu


On Thu, 29 Aug 2002, David F. Skoll wrote:

> Hi,
>
> Libpq has a way to set the notice processor:
> http://www.postgresql.org/idocs/index.php?libpq-control.html
>
> Is there any way from within the Perl Pg module to turn off the printing
> of NOTICEs to stderr?  It's a bit annoying in one of my projects.
>
> Regards,
>
> David.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>


В списке pgsql-admin по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: timeout
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Passwords and batch processes (was Re: Problem with Dump)