473,836 Members | 1,419 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pg_catalog permission problem

I'm using Postgres 7.4. I have a database called tracking and user called
test5. From the Red Hat command line test5 can psql tracking and run:

SELECT * FROM Customers;

Not surprisingly, a list of customers is shown.

I have a Visual Basic application is accessing the same database. The same
user can open a connection to the same database. When the same query is run
the following error is thrown from Postgres:

permission denied for schema pg_catalog

With the connection to the database still open, I've run the foloowing query:

SHOW search_path;

And the following error message is returned:

permission denied for relation pg_type

Setting this user to usesuper=True in the pg_shadow table enables everything
to work correctly. But I obviously don't want to do that.

I've also tried:

GRANT ALL ON SCHEMA pg_catalog TO test5;
and
GRANT ALL ON SCHEMA pg_catalog TO PUBLIC;

and that doesn't seem to work.

Any ideas on where my permissions problem is? Is this something I missed in
the Postgres install? Could the Postgres process be running under an
inccorect user id?

I'd appreciate any help. Thanks...
Nov 22 '05 #1
3 9139
Chris Skaryd <CS*****@TheOPA LGroup.com> writes:
I have a Visual Basic application is accessing the same database. The same
user can open a connection to the same database. When the same query is run
the following error is thrown from Postgres: permission denied for schema pg_catalog


Hmmm ... better find out what queries your VB application is really
issuing. Turning on query logging in postgresql.conf might be
illuminating.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #2
Tom,

Thanks for your response.

Once logging is turned on, the only message that shoes up in the log is this:

Jan 19 14:02:40 penguin postgres[5728]: [3-1] ERROR: permission denied for
relation pg_type

So, it seems to fail before the query is even run.

I changed the following settings:
debug_print_par se = true
debug_print_rew ritten = true
debug_print_pla n = true
debug_pretty_pr int = true

Chris

Tom Lane wrote:
Chris Skaryd <CS*****@TheOPA LGroup.com> writes:
I have a Visual Basic application is accessing the same database. The same
user can open a connection to the same database. When the same query is run
the following error is thrown from Postgres:


permission denied for schema pg_catalog

Hmmm ... better find out what queries your VB application is really
issuing. Turning on query logging in postgresql.conf might be
illuminating.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #3
Tom,

I tried to reply to your email, but it was returned as "probable spam" citing
that Cable & Wireless was my provider. five-ten-sg.com blocks all email from
a major net provider when there are apparently a few spammers who use C&W. I
find that a little extreme.

Chris

Tom Lane wrote:
Chris Skaryd <CS*****@TheOPA LGroup.com> writes:
I have a Visual Basic application is accessing the same database. The same
user can open a connection to the same database. When the same query is run
the following error is thrown from Postgres:


permission denied for schema pg_catalog

Hmmm ... better find out what queries your VB application is really
issuing. Turning on query logging in postgresql.conf might be
illuminating.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
4429
by: Wayne Wengert | last post by:
I am using VS.NET 2003, VB.NET, ADO.NET and an Access 2000 database. I want to display a list of all tables in an Access database. I want to put that list of table names in a listbox so the user can select the table they want to use. How can I do this? -- ------------------------------------ Wayne Wengert wayne@wengert.org
12
2559
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current one is a permission error. The project is a VC++ Web Service. It works fine when the service is hosted on the old W2K dev machine, but on the new XP machine I get a permission error when the service tries to open a text file on the Windows...
0
2862
by: Tom Hebbron | last post by:
Hi list, test=# SELECT 'pg_catalog.pg_class'::regclass::oid; oid ------ 1259 (1 row) test=# SELECT '1259'::oid::regclass; regclass
10
4657
by: Florian G. Pflug | last post by:
Hi I installed a postgres-application (which was developed on debian woody) on red hat 9 today, using the postgres 7.3 rpms from redhad. One of my the triggers uses the pg_settings table (more precisely, it updates that table to change the search_path temporarily). With the postgres 7.3 (and 7.4 too) installed on my debian development system, this worked fine. On redhat 9, however, I get an "pg_settings: permission denied" error when my...
3
2764
by: Chua Wen Ching | last post by:
Hi there, I had applied this security permissions in my class library based on fxcop standards. Before namespace: using System.Runtime.InteropServices; using System.Security.Permissions;
6
1533
by: Andy | last post by:
Hi I have created a facility to allow the user to upload an image file to the webserver. When the user creates the image for the first time i.e. the image does not exist within the directory everything works fine. The problem occurs if my ASP.NET dll tries to delete the file or overwrite it??? I assume my app will be using the ASPNET account and I
2
3692
by: Taishi | last post by:
New user of SQL Everything is on the same machine My error is close to the bottom After reading it today, I can see there is a problem with 2 dbases 'PUBS' and 'Master' There are also some comments from the group: ---microsoft.public.sqlserver.odbc-- subject: Permission Denied -- Thanks for help guys I was able to find a trial version of the Enterprise Manager.
6
9356
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty sure it is a permission issue because the script works when I point the browser directly at the .htm file on the c: drive: c:\inetpub\wwwroot\DemoSite\VbScriptTest.htm
1
3576
by: doctorhardik | last post by:
other interesting thing i observe during my work which i describe below: i am using dotproject2.0.4 on fc3. it is working fine. but i want to generate pdf file report during this time i face permission denied problem. Warning: fopen(/var/www/html/dotproject/files/temp/temp1.pdf): failed to open stream: Permission denied in /var/www/html/dotproject/modules/projects/reports/tasklogs.php on line 307 Could not open file to save PDF. ...
0
10840
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10546
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6978
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5823
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3112
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.