Answer the question
In order to leave comments, you need to log in
Is it reasonable to register site users as PostgreSQL users?
Actually, there is an idea to implement all the site logic in PostgreSQL. The question is, in fact, what problems can arise if I register site users as PostgreSQL users. That is, roughly speaking, instead of creating your own user table, use pg_authid . Is it possible and would it be reasonable?
Among the obvious problems that I will face is the need to maintain a separate connection to PostgreSQL for each user.
Answer the question
In order to leave comments, you need to log in
A completely unnatural idea.
Users do not know how to use the application correctly. They don't know how to come up with complex passwords. They don't know how to keep track of passwords. If you distribute sql access to the database, it will definitely be broken. Break other users and so on. And by means of sql bases security can be supported very limitedly.
Among the obvious problems that I will face is the need to maintain a separate connection to PostgreSQL for each user.
there is such directive in postgres as max_connections, and it is not easy.
In general, never do this. There must be a layer between the base and the outside world. Organize your user system differently.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question