Manage users using PostgreSQL

Our system will run on a local network, where no more than 50 clients connect to the same local server. We are creating a DB user for each client to take advantage of postgresql permissions System.

1) Analyze “performance”, can you have ~50 DB users instead of re-implementing a custom system?

2) (Solved) How does the user check (what is a SQL statement) what permissions he has in the table?

Solution:

SELECT HAS_TABLE_PRIVILEGE('user','table','insert')

I would rather not reimplement System, because a good security system is not easy to implement.

To answer user/performance questions : Probably not. The only real risk depends on how many users have unique security permissions (for example, if each of these 50 users has different permissions for each table/schema in the database). In practice, this It will never happen, as long as you have a sane permission group system, you should be fine.

Our system will run on the local network, where no more than 50 clients connect to The same local server. We are creating a DB user for each client to take advantage of the postgresql permission system.

1) Analyze “performance”, you can have ~50 DB users instead of reimplementing Custom system?

2) (Solved) How does the user check (what is a SQL statement) what permissions he has in the table?

Solution:

SELECT HAS_TABLE_PRIVILEGE('user','table','insert')

I would rather not reimplement System, because a good security system is not easy to implement.

To answer the user/performance question: maybe not. The only real risk depends on how much The user has unique security permissions (for example, if each of these 50 users has different permissions for each table/schema in the database). In practice, this will never happen, as long as you have a sane permission Group system, you should be fine.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 754 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.