Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to configure PostgreSQL such that it can trust a single process, instead of a specific user?

share|improve this question
Not that I know of. But you could run the specific process with a specific user? – Erwin Brandstetter Mar 28 '13 at 14:15

That is not possible I am afraid of. The selection is based on the following criteria:

  1. Type of connection (local or network)

  2. Username requested

  3. Database requested

Nowhere in there is a process given. If you want to trust a given process the way to do that is to have a service account, a specific database user, and map these in, using peer authentication on *nix (peer on local connections used to be called ident but this was changed since ident is very different on network connections and has far more issues).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.