dbTalk Databases Forums  

Must be superuser to COPY from a file?

comp.databases.postgresql.interfaces comp.databases.postgresql.interfaces


Discuss Must be superuser to COPY from a file? in the comp.databases.postgresql.interfaces forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bernard
 
Posts: n/a

Default Must be superuser to COPY from a file? - 08-17-2005 , 03:30 AM






Hi

On the attempt to bulk load a table from a file that is owned by the
non-superuser current database user, the following error message is
printed:

"must be superuser to COPY to or from a file"

What is the reason for this limitation?

It can't justifiably be for security reasons because if a web
application such as tomcat requires to bulk load tables automatically
on a regular basis then one would be forced to let the web application
connect as superuser, which is very bad for security.

In MySQL bulk loading works for all users.

We need a Postgresql solution.

We have a web application where both MySQL and Postresql are
supported. With Postgresql, the application would have to connect as
user postgres. We have to explain this security risk to our clients
very clearly.

Many thanks for your help

Bernard


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.