Coder Social home page Coder Social logo

Comments (3)

md5 avatar md5 commented on August 28, 2024

@chbrandt Why did you close this? It seems like a valid question.

from postgres.

chbrandt avatar chbrandt commented on August 28, 2024

@md5 because POSTGRES_USER has the properties NOCREATEDB, NOCREATEROLE and NOREPLICATION, and for some reason I thought that would be necessary. But, in fact, it isn't since POSTGRES_USER is playing in its own db, POSTGRES_DB.
Since I'm newbie, at some point I thought I was wrong. Anyway, if I asked, I should wait some one to answer it...
[]

from postgres.

md5 avatar md5 commented on August 28, 2024

@chbrandt Good point. Since $POSTGRES_USER is given SUPERUSER (if it isn't using the default user postgres), I suppose it would be possible to use that permission to give the user CREATEDB or any of the other permissions as needed in a *.sql file. Since the globbing in bash guarantees an order, it would be a simple matter to ensure that the script that grants those permissions would be run first based on a naming convention.

from postgres.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.