Received: from peculiarweb.com ([209.203.233.5]) by hub.org (8.8.8/8.8.8) with ESMTP id SAA10808 for ; Tue, 15 Sep 1998 18:45:05 -0400 (EDT) (envelope-from mo@midwestonline.com) Received: from loonybin (mo@peculiar.sound.net [209.153.96.230]) by peculiarweb.com (8.8.7/8.8.5) with SMTP id RAA08290 for ; Tue, 15 Sep 1998 17:43:04 -0500 (CDT) Sender: mo@peculiarweb.com Message-ID: <35FEED4B.643ACD6@midwestonline.com> Date: Tue, 15 Sep 1998 17:42:19 -0500 From: Midwest Online X-Mailer: Mozilla 3.04 (X11; I; Linux 2.0.0 i586) MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] getting "fe_setauthsvc: invalid name" error References: <3.0.1.32.19980911201118.00831d90@midwestonline.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Tom Lane wrote: > > My guess is that the execution environment is different for your CGI > program, with respect to either username or lack of one of the > environment variables that libpq pays attention to (PGPORT, etc). I think you're right, Tom. If I run the program on my Linux box as a different user, I get the same error. Now, how do I set the username from C/C++?? I can't figure it out from the docs ... > BTW, hackers: when I looked into pgconnection.cc, I was astonished > and dismayed by the number of instantly visible bugs. This code is in > *horrible* shape --- it's amazing it works at all. Someone is going to > have to adopt libpq++ and give it a close going-over. I wish I knew enough about C++. :) Thanks for your help, Tom! Clint ---------------------------------------------------------------------------- Belinda & Clint Forgy Midwest Online PeculiarWeb Internet Designs http://www.midwestonline.com http://www.peculiarweb.com