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 6777093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:06:24+00:00 2026-05-26T16:06:24+00:00

I have to run a simulation with several postgresql databases spread on different machines

  • 0

I have to run a simulation with several postgresql databases spread on different machines which all of them are running linux.

I successfully compiled and built postgresql from the source code and I can also run the server, but when I try to create a new db with this command:

./postgresql/bin/createdb db1

I get this error:

createdb: could not connect to database postgres: FATAL:  role "giulio" does not exist

where giulio is my username to access all the machines.

On some machine it works while on other it does not. I really cannot figure out the root of the problem. I suppose it is something related with the access control of postgres.

I did several research on google but I was not able to found and to solve the problem.

Does anyone know how to get this work?

Thanks,

-Giulio

  • 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-26T16:06:25+00:00Added an answer on May 26, 2026 at 4:06 pm

    I would assume that on the machines where the user “giulio” is already known, you executed initdb with exactly this user making him the DB superuser. A quote from inidb(1) (emphasis mine):

    –username=username
    Selects the user name of the database superuser. This defaults
    to the name of the effective user running initdb.
    It is really
    not important what the superuser’s name is, but one might choose
    to keep the customary name postgres, even if the operating sys‐
    tem user’s name is different.

    On the other machines I assume you did execute initdb with another user, hopefully using postgres.

    In order to get back on the standard track I propose, that you delete the database cluster on the machines where “giulio” is the superuser and setup a new database cluster using the standard postgres user. Then add another user “giulio”. This will avoid more confusion down the road as some scripts/programs expect a superuser account named postgres.

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

Sidebar

Related Questions

I have a query that I run several times with different parameters. I am
I have a situation I've run into several times but have never found a
I am configuring a new environment to run several intranet web applications. I have
We have several seismic attribute generators which require data from seismic volumes which are
I have run into a situation where I want to ensure that a compound
I have run across an XML Schema with the following definition: <xs:simpleType name=ClassRankType> <xs:restriction
I have run into a common, yet difficult problem. I do not use Photoshop
I have run in to a bit of a problem and I have done
I have run into a bit of a tricky problem in some C++ code,
I have run into an issue with WPF and Commands that are bound to

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.