Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F0715475C81 for ; Thu, 29 Aug 2002 14:57:10 -0400 (EDT) Received: from wolff.to (wolff.to [66.92.219.49]) by postgresql.org (Postfix) with SMTP id 1672E4759BD for ; Thu, 29 Aug 2002 14:57:10 -0400 (EDT) Received: (qmail 26017 invoked by uid 500); 29 Aug 2002 19:04:27 -0000 Date: Thu, 29 Aug 2002 14:04:27 -0500 From: Bruno Wolff III To: David Wheeler Cc: "David F. Skoll" , Andrew Perrin , pgsql-admin@postgresql.org Subject: Re: Silencing NOTICEs in Perl Pg Message-ID: <20020829190427.GA25628@wolff.to> Mail-Followup-To: David Wheeler , "David F. Skoll" , Andrew Perrin , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/371 X-Sequence-Number: 5485 On Thu, Aug 29, 2002 at 11:33:22 -0700, David Wheeler wrote: > On Thursday, August 29, 2002, at 11:29 AM, David F. Skoll wrote: > > >PostgreSQL comes with its own "Pg" module, completely unrelated to DBI. > >That's what I'm using. > > Oh, never noticed that before. > > May I suggest to the PostgreSQL developers that this be deprecated in > favor of DBI/DBD::Pg? That really is the standard way to interface to > databases in Perl. Just because it is the standard way doesn't mean its the best way. Pg is tied closely to libpg which may provide advantages in some cases. For example, I believe DBI has a lame way to do things when autocommit is off. It immediately starts a transaction rather than wait for a begin statement to be sent. This has consequences that may not always be desirable.