Re: Help with pq++

From: Jose Manuel Lorenzo Lopez <jose-manuel(dot)lorenzo-lopez(at)conti(dot)de>
To: PostgreSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Help with pq++
Date: 2001-02-27 09:28:36
Message-ID: 3A9B7344.AB2A6AE@conti.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Aristide Aragon schrieb:
>
> On Mon, Feb 26, 2001 at 01:53:18PM -0500, Belcher, Jim wrote:
> > Im not sure how to tell, but i had to to a "grant all on table 'such and
> > such'"
> > for a user to have access to that table. You can also grant partial
> > privleges
> > such as insert etc.
>
> I did a "GRANT all ON mydb TO public" and I still ge tthe error.
> Is there no error log or something where I could check what is wrong?

Hello Aristide,

I guess it's not your program, which seems okay, but your user.
Please check if the user which is supposed to execute the program
is added to the DB. If not do a createuser for the mentioned user.

To be more sure add the following lines in the else-branch of your
source-code:

// Get a detailed message about the error ocurred
fprintf(stderr, "Error Message: %s", db.ErrorMessage());

or check the postmaster log after executing the program.

Hope this will help you and give you confidence back for programming
apps with postgresql! :)

Best Regards / Un saludo / Mit freundlichen Grüßen / Cordiali Saluti

José Manuel Lorenzo López

--
**********************************************************************
** José Manuel Lorenzo López **
** **
** ICA Informationssysteme Consulting & Anwendungsgesellschaft mbH **
** Dept. SAP Basis R/3 VBue **
** **
** e-mail to: jose-manuel(dot)lorenzo-lopez(at)conti(dot)de **
**********************************************************************
--
**********************************************************************
** José Manuel Lorenzo López **
** **
** ICA Informationssysteme Consulting & Anwendungsgesellschaft mbH **
** Dept. SAP Basis R/3 VBue **
** **
** phone: (+49511) 938-2961 **
** fax : (+49511) 938-2270 **
** e-mail to: jose-manuel(dot)lorenzo-lopez(at)conti(dot)de **
**********************************************************************

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2001-02-27 09:30:15 Re: Create type
Previous Message Jose Manuel Lorenzo Lopez 2001-02-27 09:13:18 Re: Permission denied while insert