Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5844225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:15:44+00:00 2026-05-22T12:15:44+00:00

When installing PostgreSQL on MacOS you need to create a data folder where it

  • 0

When installing PostgreSQL on MacOS you need to create a data folder where it will store details about users, dbs and privileges, but this data is globally available.
Is there a way to separate this based on Mac users?

This way:

  • When logging in with UserA, PostgreSQL will only instantiate/see DB_A1 and DB_A2 and PostgreSQL users defined only for UserA’s PostgreSQL instance.
  • When logging in with UserB, PostgreSQL will only instantiate/see DB_B1 and DB_B2 and PostgreSQL users defined only for UserB’s PostgreSQL instance.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:15:45+00:00Added an answer on May 22, 2026 at 12:15 pm

    according to my somewhat rusty knowledge about PostgreSQL your intention would lead to start a postmaster process for every user on his/her own reserved port. Although this is possible, it smells like smoke from administration hell (not counting the overhead of a fat RDBMS process reserved for a single user spending most of the time waiting). Positively expressed I propose considering one of the following options:

    • Add a line to pg_hba.conf like local all sameuser all md5 to allow all local users to only access their personal databaase (named like the user). Access to system data may be further restricted depending on the actual PostgreSQL version you’re using (it’s best to consult the documentation in this case).

    • Depending on the amount of data if concurrent access was not a critical must-have (which seems to be the case here) switch to sqlite3; it’s performant, data sits in a single file, access is provided by a library instead of a full fledged RDBMS background process armada, and it comes ready to use with every Mac OS X.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've read a lot about PostgreSQL monitoring through GUI tools but that doesn't match
When installing one of JRuby's frequent upgrades, I need to re-install my gems, as
Using sqlite3 and Django I want to change to PostgreSQL and keep all data
Installing imagemagick works. But when I try to run a command it says bad
I have a query that works on Postgresql 7.4 but not on Postgresql 8.3
I'm trying to get Rails to work with PostgreSQL. Apparently one thing I need
I'm trying to install the pg gem . bens-macbook-pro:liferecord ben$ bundle config build.pg --with-pg-config=/users/ben/postgresql/bin
I've tried to get postgresql 8.4 via MacPorts (on Snow Leopard) but it seems
I've installed PostgreSQL using MacPorts on a couple of different computers, no problem, but
I'm using Windows XP and I've installed PostgreSQL 8.3.5-2. I can create databases via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.