Re: Help with pq++ - Mailing list pgsql-general

From Jose Manuel Lorenzo Lopez
Subject Re: Help with pq++
Date
Msg-id 3A9B7344.AB2A6AE@conti.de
Whole thread Raw
In response to Help with pq++  (Aristide Aragon <aristide@lionking.org>)
List 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.lorenzo-lopez@conti.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.lorenzo-lopez@conti.de                    **
**********************************************************************

pgsql-general by date:

Previous
From: Jose Manuel Lorenzo Lopez
Date:
Subject: Re: Permission denied while insert
Next
From: "Richard Huxton"
Date:
Subject: Re: Create type