Re: Help with pq++

Поиск
Список
Период
Сортировка
От Jose Manuel Lorenzo Lopez
Тема Re: Help with pq++
Дата
Msg-id 3A9B7344.AB2A6AE@conti.de
обсуждение исходный текст
Ответ на Help with pq++  (Aristide Aragon <aristide@lionking.org>)
Список 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 по дате отправления:

Предыдущее
От: Jose Manuel Lorenzo Lopez
Дата:
Сообщение: Re: Permission denied while insert
Следующее
От: "Richard Huxton"
Дата:
Сообщение: Re: Create type