Xiang Gan <XiangGan@santaitech.com> writes:
> OK. So a stupid question, whether there is any possibility to run Postgresql as root? (I know this is forbidden
generally.But what I find out is that in Linux FriendlyArm environment, root could create socket while non-root user
doesnot have such privilege)
So, it's not so much FriendlyArm as StupidAndUselessArm? What sort of nut
would think that all network services should run as root?
The short answer to your question is that if you're so inclined, you
can easily find and dike out the no-root check in the server source
code. But the Postgres project never has and never will publish a
version with that check removed or compromised in any way, and we will
not provide support if you have any problems running the server that way.
We do not believe it's advisable to run network-accessible services
as root.
regards, tom lane