Answer the question
In order to leave comments, you need to log in
Uploading a file to Postgres storage without superuser permissions in PHP?
Good day!
When I try to use the pg_lo_import function, I get an error:
ERROR: must be superuser to use server-side lo_import()
HINT: Anyone can use the client-side lo_import() provided by libpq.
Answer the question
In order to leave comments, you need to log in
If you cannot manage users, then you need to create an application that can connect on behalf of another user with the required set of rights.
Only this application must be running on the server on a permanent basis and be able to exchange via http with PHP via curl.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question