pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Darko Prenosil <darko.prenosil@finteh.hr>
To: Carlos Ojea Castro <carlosojea@leveltelecom.es>
To: pgsql-interfaces@postgresql.org
Subject: Re: :  query using kylix (delphi)
Date: Tue, 29 Jun 2004 15:09:47 +0200
Message-ID: <200406291509.48031.darko.prenosil@finteh.hr> (raw)
In-Reply-To: <40E14C80.4040209@leveltelecom.es>
References: <40D84E00.2050602@leveltelecom.es>
	<40E14C80.4040209@leveltelecom.es>

On Tuesday 29 June 2004 13:03, Carlos Ojea Castro wrote:
> Hello:
>
> I am trying to access a postgresql database using kylix (delhi).
> I made a SQLConnection object and I got it active.
> Then I made a SQLQuery object, but when I try to make it active, i get a
> 'access violation' message.
>

	This is not right list to ask questions about Kylix, however 
you probably have no access permissions to get the data (SELECT permission on 
targer table).
	Check the permissions for the table you are accessing.
For example if You want to check SELECT permission for pg_catalog.pg_index
table, You can do that using:
	SELECT has_table_privilege('pg_catalog.pg_index', 'SELECT') 
or INSERT permission:
	SELECT has_table_privilege('pg_catalog.pg_index', 'INSERT') 
etc...

If you have no privileges You can change it using :
	GRANT SELECT ON TABLE pg_catalog.pg_index TO public;
	GRANT INSERT ON TABLE pg_catalog.pg_index TO public;
or:
	GRANT INSERT ON TABLE pg_catalog.pg_index TO some_other_group;
or:
	GRANT INSERT ON TABLE pg_catalog.pg_index TO some_other_user;
etc...

You might also want to check server log for exact error message and 
explanation.

Regards !




view thread (9+ messages)  latest in thread

Message-ID: <200406291509.48031.darko.prenosil@finteh.hr>
Permalink:  ../200406291509.48031.darko.prenosil@finteh.hr/
Also on:    postgresql.org/message-id/200406291509.48031.darko.prenosil@finteh.hr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: darko.prenosil@finteh.hr, carlosojea@leveltelecom.es
  Subject: Re: :  query using kylix (delphi)
  In-Reply-To: <200406291509.48031.darko.prenosil@finteh.hr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox