If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Postgres 8.4 to Postgres 9 (was Progres 8.4 to Progress 9)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-18-11, 07:16
ocavid ocavid is offline
Registered User
 
Join Date: Apr 2011
Posts: 10
Postgres 8.4 to Postgres 9 (was Progres 8.4 to Progress 9)

Hi,

I upgraded our server from postgres 8.4 to version 9. i tested our applications against it for a week and looks to work fine, and lately i just noticed that there are a lot of errors in the log which says:
Permission denied large object nnnnnnn...
and this error does not appear in the previous version.

this happens on users that have selected roles for specific tables but all users have a select access. other users that does have super user privileges works fine.

One thing also is that on my testing this in VB6 this SQL command
ex. SELECT * FROM person_photos WHERE person_code = '12010';
using unprivileged user:
1. In VB6 this command produces and EOF set to TRUE.
2. In psql the command found the record.

have anyone has an experienced with this behavior and what the did you do?

thanks,
oscar

Last edited by ocavid; 04-18-11 at 08:17. Reason: postgres not progress
Reply With Quote
  #2 (permalink)  
Old 04-18-11, 07:55
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
I'm confused. You posted in the PostgreSQL forum, but you only mention Progress (which is a completely different DBMS). Which DBMS exactly are you using.
Reply With Quote
  #3 (permalink)  
Old 04-18-11, 08:10
ocavid ocavid is offline
Registered User
 
Join Date: Apr 2011
Posts: 10
Question

Quote:
Originally Posted by shammat View Post
I'm confused. You posted in the PostgreSQL forum, but you only mention Progress (which is a completely different DBMS). Which DBMS exactly are you using.
Sorry it should be postgres... i am working with progress and thinking about my application in postgres... it should be postgres. (anyone can edit the title pls do so).
Reply With Quote
  #4 (permalink)  
Old 04-18-11, 08:14
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
I have never used large objects (bytea is usually a lot better) but the error message:

"Permission denied large object nnnnnnn..."

seems to indicate a problem with permissions in the file system.
Reply With Quote
  #5 (permalink)  
Old 04-18-11, 15:15
ocavid ocavid is offline
Registered User
 
Join Date: Apr 2011
Posts: 10
Quote:
Originally Posted by shammat View Post
I have never used large objects (bytea is usually a lot better) but the error message:

"Permission denied large object nnnnnnn..."

seems to indicate with a problem with permissions in the file system.
Yes, i guess it is a problem with permission, I am just wondering why it happens, i am working with 8.4 and it works fine but after the upgrade it indicates this error, i did migrate the entire 8.4 data.

on the sideline how should i do that using BYTEA in VB6, i tried it but i could not understand it well, to store data in that BYTEA column using VB6?

thank you!

Last edited by ocavid; 04-18-11 at 15:18. Reason: to make it more understandable, my computer is having a problem
Reply With Quote
  #6 (permalink)  
Old 04-18-11, 17:03
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,408
Quote:
Originally Posted by ocavid View Post
Yes, i guess it is a problem with permission, I am just wondering why it happens, i am working with 8.4 and it works fine but after the upgrade it indicates this error, i did migrate the entire 8.4 data.
Apparently during migration (however you did that) the permissions where not restored correctly.

Quote:
on the sideline how should i do that using BYTEA in VB6, i tried it but i could not understand it well, to store data in that BYTEA column using VB6?
Sorry I have no idea. I have never worked with VisualBasic
Reply With Quote
  #7 (permalink)  
Old 04-19-11, 21:05
ocavid ocavid is offline
Registered User
 
Join Date: Apr 2011
Posts: 10
Unhappy Why they did that?

This explains why I cannot access the large objects without having to become a superuser.
[GENERAL] Large Object permissions lost in transfer
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On